How to check whether the docker container is started or not?

Release: 2020-03-30 10:06:39
Original
7068 people have browsed it

How to check whether the docker container is started or not?

How to check whether the docker container is started:

You can use the docker ps command to view all running docker containers:

runoob@runoob:~$ docker ps CONTAINER ID IMAGE COMMAND ... PORTS NAMES 09b93464c2f7 nginx:latest "nginx -g 'daemon off" ... 80/tcp, 443/tcp myrunoob 96f7f14e99ab mysql:5.6 "docker-entrypoint.sh" ... 0.0.0.0:3306->3306/tcp mymysql
Copy after login

Output details:

CONTAINER ID: Container ID.

IMAGE: The image used.

COMMAND: The command to run when starting the container.

CREATED: The creation time of the container.

STATUS: Container status.

For more related tutorials, please pay attention to thedocker tutorialcolumn on the PHP Chinese website.

The above is the detailed content of How to check whether the docker container is started or not?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!