Run a temporary debug container

Network debugging toolbox that shares the host PID namespace and network

docker run --rm -it --pid=host --network=host --privileged nicolaka/netshoot

tool
docker46 commands
tags
dockerdebugnetwork

More docker commands

  • docker buildx bake -f docker-bake.hcl --push

    Builds and pushes several targets from one HCL file, in parallel and without repeated definitions

  • docker buildx imagetools inspect <reg>/<name>:tag --format '{{json .Manifest}}'

    Shows the platforms in a manifest list without pulling layers; a quick check for arm64 and amd64

  • docker buildx create --name multi --use --driver docker-container --driver-opt network=host

    Creates a BuildKit builder with multi-arch and cache export support; the default driver cannot do this

  • docker buildx build --secret id=token,src=token.txt -t <name> .

    Gives a secret to BuildKit; only RUN --mount=type=secret,id=token can read it, and it does not end up in the history

  • docker context create remote --docker host=ssh://<host> && docker context use remote

    Runs docker against a remote daemon over SSH; no open TCP socket needed

all 46 docker commands