Docker compose up detached
Rebuild and start services, remove containers not in compose file
docker compose up -d --build --remove-orphans
More docker commands
-
docker compose up -d --scale worker=5Run 5 replicas of the worker service
-
docker compose logs -f --tail=100 workerStream last 100 lines of a specific compose service
-
docker network inspect bridge | jq '.[0].Containers | to_entries[] | .value | {Name, IPv4Address}'Show IPs of all containers in the bridge network
-
docker network create --driver bridge --subnet 172.30.0.0/24 mynetCreate a bridge network with a custom subnet
-
docker save myapp:1.0 | gzip > myapp.tar.gz && docker load < myapp.tar.gzExport image to archive and reimport on another host