SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The list of running containers can be seen using the?
A
$ docker ps
B
$ docker container ls-a
C
$ docker ps 5
D
None of the above
Explanation: 

Detailed explanation-1: -Like it was mentioned, if you are already inside of a container, then just use ps-eaf command to see the running processes. By the way, it is recommended to have one user application / process per container.

Detailed explanation-2: -The docker ps command, which is available inside the container, is used to see the status of the process. This is similar to the standard ps command in the Linux environment and is not a docker ps command that we run on the Docker host machine.

Detailed explanation-3: -Obtain the container ID by running the following command: docker ps. Access the Docker container by running the following command: docker exec-it <container id> /bin/bash.

There is 1 question to complete.