Skip to content
David Liu edited this page Apr 18, 2022 · 8 revisions

Debug

docker run --rm --security-opt label=disabled -v /var/run/docker.sock:/var/run/docker.sock:Z busybox echo it works

Ping the docker socket

sudo curl -H "Content-Type: application/json" --unix-socket /var/run/docker.sock http://localhost/_ping

common options

--rm automatically clean up the container and remove the file system when the container exits

  • Default is false
Clone this wiki locally