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

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

qt - Microsoft FTP Service 451 The parameter is incorrect -