How to check whether docker started successfully in linux

WBOY
Release: 2022-07-27 15:55:57
Original
6641 people have browsed it

How to check whether docker starts successfully in Linux: 1. Use the "systemctl list-units" command, which can check the currently started services; 2. Use the systemctl command, which is used for service management , when the parameter is set to "status", you can view the status of the current service, and the syntax is "systemctl status docker".

How to check whether docker started successfully in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to check whether docker is started successfully in Linux

Service: a process that resides in the system memory and can provide some system and network functions

The latest Linux systems are now used uniformly systemctl manages services

1. Management service systemctl (root permission)

systemctl [opt] xxx.service
Copy after login
  • status View the current service status

  • start Start the service

  • stop Stop the service

  • restart Restart the service

  • enable Set to start at boot

  • disable Set not to start at boot

  • reload Reload without following the specific service name Configuration file

  • mask Logout service

  • unmask Unlogout

The example is as follows:

How to check whether docker started successfully in linux

Classification of run levels runlevel

  • ##Run level 0: System shutdown state

  • Running Level 1: Single-user working state, root privileges, used for system maintenance, remote login is prohibited

  • Running Level 2: Multi-user state (without NFS)

  • Run level 3: Full multi-user state (with NFS)

  • Run level 4: System is not used, reserved

  • Run Level 5: X11 Console

  • Run Level 6: System gracefully shuts down and restarts

2. Some common commands systemctl

View currently started services systemctl list-units

View all services systemctl list- unit-files

Check the dependencies of the service systemctl list-dependencies xx.service

Check the dependencies of the service (reverse) systemctl list-dependencies --reverse xx.service

Recommended learning:

Linux video tutorial

The above is the detailed content of How to check whether docker started successfully 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!