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 restarting ALL (stopped and running) containers use docker restart $(docker ps -a -q)
as in answer lower.