Create custom network
Create a bridge network with a custom subnet
docker network create --driver bridge --subnet 172.30.0.0/24 mynet
- tool
- docker46 commands
More docker commands
-
docker save myapp:1.0 | gzip > myapp.tar.gz && docker load < myapp.tar.gzExport image to archive and reimport on another host
-
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD curl -sf http://localhost:8080/health || exit 1Native Docker healthcheck with curl (add to Dockerfile)
-
docker scout cves --only-fixed myapp:latestShow only CVEs that already have a fix available
-
docker run --rm -it --pid=host --network=host --privileged nicolaka/netshootFull-featured network debug container sharing host PID and network
-
docker buildx bake -f docker-bake.hcl --pushBuild/push multiple targets from one HCL file; parallel, DRY group definitions