Pausing all Docker running containers

Published on 2025-01-19 • Modified on 2025-01-19

This snippet shows how to pause all Docker running containers in a single command. We can use the docker pause command combined with the ps one to retrieve all running containers.


docker pause $(docker ps -q)

 More on Stackoverflow   Read the doc  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil