Public | Automated Build

Last pushed: 2 months ago
Short Description
Docker with utorrent
Full Description

docker-utorrent

Docker image to run the utorrent server.

Run

Run via Docker CLI client

To run the utorrent container you can execute:

docker run                                            \
    --name utorrent                                   \
    -v /path/to/data/dir:/utorrent/data               \
    -p 8080:8080                                      \
    -p 6881:6881                                      \
    ekho/utorrent:latest

Open a browser and point your to http://docker-host:8080/gui

Settings persistence

Dir on host machine

docker run                                            \
    --name utorrent                                   \
    -v /path/to/data/dir:/utorrent/data               \
    -v /path/to/setting/dir:/utorrent/settings        \
    -p 8080:8080                                      \
    -p 6881:6881                                      \
    ekho/utorrent:latest

Named volume

docker volume create utorrent-settings

docker run                                            \
    --name utorrent                                   \
    -v /path/to/data/dir:/utorrent/data               \
    -v utorrent-settings:/utorrent/settings           \
    -p 8080:8080                                      \
    -p 6881:6881                                      \
    ekho/utorrent:latest

Custom config

Download utserver.conf and modify it as you want.
All available settings you can find in example config.

docker run                                            \
    --name utorrent                                   \
    -v /path/to/data/dir:/utorrent/data               \
    -v /path/to/utserver.conf:/utorrent/utserver.conf \
    -p 8080:8080                                      \
    -p 6881:6881                                      \
    ekho/utorrent:latest

Custom UID/GID

By default container tries to use uid/gid of owner of /utorrent/data volume. But you can specify custom UID/GID by environment variables.

docker run                                            \
    --name utorrent                                   \
    -v /path/to/data/dir:/utorrent/data               \
    -e HOST_UID=1002 -e HOST_GID=1002                 \
    -p 8080:8080                                      \
    -p 6881:6881                                      \
    ekho/utorrent:latest

Run via Docker Compose

You can also run the utorrent container by using Docker Compose.

Create your Docker Compose file (docker-compose.yml) using the following YAML snippet:

version: '3'
services:
  utorrent:
    image: ekho/utorrent:latest
    container_name: utorrent
    volumes:
      - /path/to/data/dir:/utorrent/data
      - utorrent-settings:/utorrent/settings
      - /path/to/utserver.conf:/utorrent/utserver.conf
    environment:
      HOST_UID: 1002
      HOST_GID: 1002
    ports:
      - 8080:8080
      - 6881:6881
    restart: always
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"
volumes:
  utorrent-settings:

Changes

  • 2018-01-03 added host uid/gid usage
  • 2017-12-24 changed directories layout
Docker Pull Command
Owner
ekho
Source Repository