Docker
Install
$ sudo dnf install moby-engine docker-compose
$ sudo systemctl enable docker
$ sudo usermod -aG docker $USER
# Test (after restart)
$ docker run hello-world
(GUI: lazydocker
$ sudo dnf copr enable atim/lazydocker
$ sudo dnf install lazydocker)
Volume Permissions
For Docker volumes that mount a host directory to not suffer from permission issues, "Z"
needs to be added at the end of the volume string: /path/to/host/directory:/path/to/mount/in/container:Z
.
Managers
Now that I use proxmox to run unifi and home assistant, I do not see much need for running Docker containers; but if I do:
Portainer
https://github.com/portainer/portainer https://github.com/docker/awesome-compose/blob/master/portainer/compose.yaml
My /home/portainer/docker-compose.yaml
:
services:
portainer:
image: portainer/portainer-ce:alpine
container_name: portainer
privileged: true
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/home/portainer/portainer_data:/data"
restart: always
Dockge
https://github.com/louislam/dockge