Menu Close

Docker – Unpause processes in docker container

We will help you to understand how to unpause processes in docker container. For this, we use “docker unpause” command.

docker unpause” command unpause processes within one or more docker container.

Command:

docker unpause container_name_1 container_name_2 …

How docker unpause command works ?

  • docker unpause command un-suspends all the processes of containers.
  • Once all the processes go to un-suspend state, you can go to inside container by exec command.

Example:

% docker unpause ubuntu

% docker ps
CONTAINER IDIMAGECOMMANDCREATEDSTATUSPORTSNAMES

9b815c2b0d3c

ubuntu:latest

“bash”

22 hours ago

Up 22 hours

 

ubuntu

Now, we will check the processes of container.

% docker top ubuntu
UIDPIDPPIDCSTIMETTYTIMECMD
root281827920Aug12?00:00:00bash
root33232859003:26?00:00:00python3 -m http.server
root34222792014:57?00:00:00bash
root43532792018:05?00:00:00bash

 

Read about pause the process of container

To learn more about docker, Please refer given below link:

https://www.techieindoor.com/

References:

https://en.wikipedia.org/wiki/Docker_(software)

Posted in docker

Leave a Reply

Your email address will not be published.

Contact Us