In this post, I will put useful commands for the docker collected on the web

1. Cleaning docker unused images

docker images --no-trunc -aqf "dangling=true" | xargs docker rmi

2. Run docker with socket and tcp endpoint

#edit /lib/systemd/system/docker.service and change line starting with ExecStart

ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp:// --dns --dns
#save file and run following commands

systemctl daemon-reload service docker restart



Be the first to post a comment

Post a comment