Skip to main content

Docker/Docker Compose Setup

The actual setup is fairly easy.  However, you have to do some prep work first.

You can skip using sudo and entering your password over and over with:  sudo -i

Install docker:

Debian:  sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Arch:  sudo pacman -Syu docker docker-compose containerd

Optional:  Enable and Start the Docker Service:  sudo systemctl enable --now docker
If it gives an error, you probably need to reboot.

Verify:  sudo systemctl is-active docker

Add your user to Docker group:  sudo usermod -aG docker ${USER}

Reboot server for permissions to take effect or run this command:  newgrp docker

Verify docker access with one of these:

docker ps
docker compose version

References:

https://www.reddit.com/r/portainer/comments/lykvxb/export_your_docker_containers_to_a_docker/
https://github.com/Red5d/docker-autocompose
https://linuxiac.com/how-to-install-docker-on-linux-mint-21/
https://docs.docker.com/engine/install/