archlinux

Docker

References:


Install

sudo pacman -S --needed docker

Enable

sudo systemctl enable docker.service --now

Check

sudo docker info

(Optional) Add user to docker groups (replace <username> accordingly):

sudo gpasswd -g docker <username>

To update an app, run the following command in the directory containing your docker-compose.yml file:

docker compose pull

Recreate and start the updated containers in detached mode:

docker compose up -d

Remove obsolete Docker container images to free up disk space:

docker image prune

Accessories


Back to index