Install Transmission Inside Docker Container in Linux

Install Transmission Inside Docker Container in Linux

Transmission is a BitTorrent client that can be used for downloading files. It is an open-source project which written in C++ programming language.

This tutorial explains how to install Transmission inside a Docker container in the Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install Transmission

  • Host network

Run the following command to create a container for Transmission that uses host network:

docker run -d --name=transmission --restart=always --network=host \
    -e USER=admin \
    -e PASS=pwd123 \
    -v /opt/transmission/config:/config \
    -v /opt/transmission/downloads:/downloads \
    -v /opt/transmission/watch:/watch \
    linuxserver/transmission
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Transmission service is listening for TCP and UDP connections on port 51413. Web interface is available on port 9091. Ports can be changed with -p option.

docker network create app-net
docker run -d --name=transmission --restart=always --network=app-net \
    -p 8080:9091 -p 8081:51413 -p 8081:51413/udp \
    -e USER=admin \
    -e PASS=pwd123 \
    -v /opt/transmission/config:/config \
    -v /opt/transmission/downloads:/downloads \
    -v /opt/transmission/watch:/watch \
    linuxserver/transmission

Note: don't forget to change password for web interface.

Testing Transmission

Open a web browser and go to http://<IP_ADDRESS>:9091, where <IP_ADDRESS> is the IP address of the system. Log in to the web interface with the admin username and password.

Transmission Inside Docker Container in Linux

Uninstall Transmission

To completely remove Transmission, remove its container:

docker rm --force transmission

Remove Transmission image:

docker rmi linuxserver/transmission

You can also remove Transmission data:

sudo rm -rf /opt/transmission

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

The 2 Comments Found

  1. Avatar
    Alex Reply

    Thanks for that.
    What if we are deploying the container on Ubuntu VM running on ESXi host and we want to access the files downloaded, here it will be located?
    Is there any how to map a NFS folder to downloads the file into there automatically from transmission?
    Thanks, cheers

    • Avatar
      lindevs Reply

      Hi,
      In the Docker command -v /opt/transmission/downloads:/downloads, the -v option specifies a volume mapping between the host machine and the Docker container. The /opt/transmission/downloads is the directory path on the host machine. This is the location where you want to store the downloaded files.
      Docker provides the capability to mount directories shared over the NFS. Please read Docker documentation regarding this.

Leave a Comment

Cancel reply

Your email address will not be published.