Portainer (Optional; Beginner)
This is the easiest tool to setup for managing Docker containers.
Install Portainer
Create Docker Volume: docker volume create portainer_data
Deploy Portainer:
docker run -d \
-p 8000:8000 \
-p 9443:9443 \
--name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
Connect to portainer "https://localhost:9443" and setup admin account.
Update:
Admin user creation now requires a token. The token can only be seen from the docker logs and you have a 5 minute time limit to setup the account. The token changes every time you restart Portainer.
Find CONTAINER ID with: docker ps
View logs with: docker logs <container id>
Restart portainer with: docker restart <container id>
Click Home -> Environments and add the host IP (10.20.10.75, for me) into the Public IP field.
Optionally, change Settings -> Settings -> Application Settings -> URL to https://raw.githubusercontent.com/technorabilia/portainer-templates/main/lsio/templates/templates-2.0.json
References:
https://linuxiac.com/docker-portainer-install/
Start at about 5 minutes - https://www.youtube.com/watch?v=2UrZzXCqcLc
https://docs.portainer.io/faqs/installing/setup-token - New admin user token
11/15/2025 - Fix
So, the current version of Docker depreciates the version of the API used by Portainer. This can be fixed a couple of ways. One is to downgrade the version of Portainer to 2.20.2 but this didn't work too well for me. The other method is to lower the minimum required API to 1.24. It's not ideal either, since it could cause problems later on. The final choice is to wait for Portainer to release an update that fixes it.
Here are the steps for lowering the API minimum to 1.24:
sudo systemctl edit docker.service- Add this part above the line ### Lines below this comment will be discarded:
[Service] Environment=DOCKER_MIN_API_VERSION=1.24 - Save the file and exit (Ctrl+O; Ctrl+X in Nano, the default for Linux Mint)
sudo systemctl restart docker
To revert the change, repeat all steps but, instead of adding those two lines, delete them.
Do Not Recommend How to downgrade to 2.20.2 run the following commands:
docker stop portainerdocker rm portainer-
docker run -d \ -p 8000:8000 \ -p 9443:9443 \ --name portainer \ --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ portainer/portainer-ce::2.20.2
To update to the current version, replace "2.20.2" at the end with "latest" and run the commands again.
New Stack Advice
Example of typical compose.yaml
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- JELLYFIN_PublishedServerUrl=zgp.us #optional
volumes:
- ${APPDATA}/Jellyfin/Config:/config
- ${MEDIA}/Videos/TV Shows:/data/tv
- ${MEDIA}/Videos/Movies:/data/movies
- ${MEDIA}/Videos/Anime:/data/anime
- ${MEDIA}/Music:/data/music
- ${MEDIA}/Videos/AMVs:/data/amvs
- ${MEDIA}/Videos/Stream:/data/stream
- ${MEDIA}/Videos/Music Videos:/data/musicvideos
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped
PUID=1002
PGID=100
TZ=America/New_York
APPDATA=/home/zel/docker
MEDIA=/mnt/omv/media
Get UID and GID with: id <user>
There's a site that lists time zones (add link later)
A lot of apps give permission errors, especially if you replace the container volume with a real folder.
To fix it use the usual commands:
chmod 777 <folder name>
chown <user name> <folder name>
chgrp <user name> <folder name>
Explain this more later.