systems:media_server:install_docker
This is an old revision of the document!
Table of Contents
Systems - Media Server - Install Docker
Docker will be installed.
Install Docker
sudo apt install docker.io docker-compose -y
Add your user to the docker group
sudo usermod -aG docker $USER
NOTE: This allows docker to be run without using sudo.
To enable this functionality, log out and log back in; or run:
newgrp docker
Create a Media Directory
mkdir /media
Change ownership of the Media Directory
chown -R 1000:1000 /media
NOTE: The 1000:1000 is usually the first user created on the system.
- Check the contents of /etc/passwd and /etc/group files.
- This should show the user associated with UID 1000 and GID 1000.
- Alternatively, check which UID and GID is associated with 1000:1000 by running:
id 1000
Create an environment file
- docker-media.env
# Main path for all MEDIA apps: MEDIAPATH=/media/ # Global Variables PUID=1000 PGID=1000 TZ=Europe/London
NOTE: Ensure the UID and GID point to the same user as before.
References
systems/media_server/install_docker.1748988516.txt.gz · Last modified: 2025/06/03 22:08 by peter