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 ID IMAGE COMMAND CREATED STATUS PORTS NAMES

9b815c2b0d3c

ubuntu:latest

“bash”

22 hours ago

Up 22 hours

 

ubuntu

Now, we will check the processes of container.

% docker top ubuntu
UID PID PPID C STIME TTY TIME CMD
root 2818 2792 0 Aug12 ? 00:00:00 bash
root 3323 2859 0 03:26 ? 00:00:00 python3 -m http.server
root 3422 2792 0 14:57 ? 00:00:00 bash
root 4353 2792 0 18:05 ? 00:00:00 bash

 

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. Required fields are marked *