Home > Operation and Maintenance > Linux Operation and Maintenance > How to check whether docker is running in linux

How to check whether docker is running in linux

WBOY
Release: 2022-06-22 16:43:23
Original
8368 people have browsed it

In Linux, you can use the systemctl command to check whether docker is running. This command is used for service management. The services managed by the systemctl command can be viewed in "/usr/lib/systemd/system", and the syntax is " systemctl status docker".

How to check whether docker is running in linux

The operating environment of this tutorial: linux7.3 system, docker version 19.03, Dell G3 computer.

How to check whether docker is running in Linux

The method to check whether the docker service has been started through the command line is as follows:

Check the running status of docker

systemctl status docker
Copy after login

systemctl Management command

Basic syntax:

systemctl [start | stop | restart | status] 服务名
Copy after login

The service managed by the systemctl command is in /usr/lib/systemd/system View

The output is as follows:

How to check whether docker is running in linux

Extension:

Start dockersystemctl start docker

Close dockersystemctl stop docker

Recommended learning: "docker video tutorial"

The above is the detailed content of How to check whether docker is running in linux. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template