How to restart all running docker containers? Mainly looking for a shortcut instead of doing
docker restart containerid1 containerid2
Just run
docker restart $(docker ps -q)
Update
For Docker 1.13.1
use docker restart $(docker ps -a -q)
as in answer lower.