Copy file from container docker
Extract a single file from a running or stopped container
docker cp <container>:/app/config.yaml ./local-config.yaml
more docker
all 46 commands →
Docker compose up detached
docker compose up -d --build --remove-orphans
Scale a compose service
docker compose up -d --scale worker=5
Print compose service logs
docker compose logs -f --tail=100 worker
Inspect network
docker network inspect bridge | jq '.[0].Containers | to_entries[] | .value | {Name, IPv4Address}'
Create custom network
docker network create --driver bridge --subnet 172.30.0.0/24 mynet