Docker Hacks

Posted by     "Benjamin Rizkowsky" on Monday, July 18, 2016

I’ve found this snippet handy when you need to restart the docker daemon and want to resume currently running containers.

docker ps |tail -n +2 > /docker.running
cat /docker.running
service docker restart
docker start $(awk '{print $1}' /docker.running)

comments powered by Disqus