Start compose in the background
Rebuilds and starts services, removes containers that are not in the compose file
docker compose up -d --build --remove-orphans
More docker commands
-
docker compose up -d --scale worker=5Runs 5 replicas of the worker service
-
docker compose logs -f --tail=100 workerShows the last 100 lines of one compose service and keeps following
-
docker network inspect bridge | jq '.[0].Containers | to_entries[] | .value | {Name, IPv4Address}'Shows the IPs of all containers in the bridge network
-
docker network create --driver bridge --subnet 172.30.0.0/24 mynetCreates a bridge network with its own subnet
-
docker save myapp:1.0 | gzip > myapp.tar.gz && docker load < myapp.tar.gzExports an image to an archive and imports it again, for example on another host