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://0.0.0.0:2376 --dns 8.8.8.8 --dns 8.8.4.4
#save file and run following commands

systemctl daemon-reload service docker restart

 

Comments

Be the first to post a comment

Post a comment