Docker #
Running containers #
Create and/or run containers:
# create & run
docker compose up
# detach on up (run in background)
docker compose up -d
# create but not run
docker compose create
# run after creation
docker compose startList all running containers:
docker compose lsStop and/or delete all containers:
# stop
# can use `start` to run again
docker compose stop
# stop & delete (keep data volumes)
# must use `up` to run again
docker compose downStop a certain container:
docker ps
# get the container ID
docker stop <ID>Updating containers #
Untested (Source: Updating docker containers:selfhosted )
docker compose pull && docker compose up -d && docker image prune -af