Command for restarting all running docker containers? -


how restart running docker containers.. looking shortcut instead 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) in answer lower.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

mongodb - Multiple $and with multiple $or in $match mongoose -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -