Install MeTube Inside Docker Container in Linux

Install MeTube Inside Docker Container in Linux

MeTube is a web-based application for downloading videos from YouTube and other websites supported by yt-dlp tool. MeTube is an open-source project available under the AGPL license.

This tutorial explains how to install MeTube 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 MeTube

  • Host network

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

docker run -d --name=metube --restart=always --network=host \
    -v /opt/metube/downloads:/downloads \
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, MeTube service is listening on port 8081. It can be changed with -p option.

docker network create app-net
docker run -d --name=metube --restart=always --network=app-net \
    -p 8080:8081 \
    -v /opt/metube/downloads:/downloads \

Testing MeTube

To access web UI, open a web browser and go to http://<IP_ADDRESS>:8081, where <IP_ADDRESS> is the IP address of the system.

MeTube Inside Docker Container in Linux

Uninstall MeTube

To completely remove MeTube, remove its container:

docker rm --force metube

Remove MeTube image:

docker rmi alexta69/metube

You can also remove MeTube downloads:

sudo rm -rf /opt/metube

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

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.