Forum breadcrumbs – You are here:Tracston Community Forum – DevOps, Micro Services, Cloud, Infrastructure, Development, Monitoring and more…DevOps / Micro Services / Automation: DockerDocker Restart all Containers
You need to log in to create posts and topics.
Docker Restart all Containers
moshe@moshe
#1 · 23/10/2020, 5:50 pm
Quote from moshe on 23/10/2020, 5:50 pmProblem
User wants to restart all containers with single command
Solution
Execute the following command
docker ps -a | awk ‘{print $1}’ | xargs docker restart
Problem
User wants to restart all containers with single command
Solution
Execute the following command
docker ps -a | awk ‘{print $1}’ | xargs docker restart
Click for thumbs down.0Click for thumbs up.0