Inspect network docker
Show IPs of all containers in the bridge network
docker network inspect bridge | jq '.[0].Containers | to_entries[] | .value | {Name, IPv4Address}'
more docker
all 46 commands →
Create custom network
docker network create --driver bridge --subnet 172.30.0.0/24 mynet
Save and load image
docker save myapp:1.0 | gzip > myapp.tar.gz && docker load < myapp.tar.gz
Healthcheck in Dockerfile
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD curl -sf http://localhost:8080/health || exit 1
Docker scout vulnerabilities
docker scout cves --only-fixed myapp:latest
Run temporary debug container
docker run --rm -it --pid=host --network=host --privileged nicolaka/netshoot