Restart the Docker service to apply the automatic start and stop command (recommended)

Restart the Docker service to apply the automatic start and stop command (recommended)

Let's take a look at the command to restart the Docker service application. The specific contents are as follows:

#Restart the docker service application and do not automatically start the docker container docker update --restart=no (docker container CONTAINER ID or docekr container NAMES)

#Restart the docker service application and automatically start the docker container docker update --restart=always (docker container CONTAINER ID or docekr container NAMES)

ps: Start the Docker command after the server restarts

Startup steps:

1. Start the Docker daemon

systemctl daemon-reload

2. Docker startup command:

systemctl start docker

3. Check whether the docker service is started

ps -ef |grep docker

4. View the services started by docker:

docker ps

other:

Restart the Docker service

systemctl restart docker

Stop the Docker service

systemctl stop docker

Summarize

The above is the command for restarting the docker service application to start and stop automatically. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time!

You may also be interested in:
  • Detailed explanation of how to enter and exit the Docker container
  • How to create, start, and stop a Docker container
  • How to keep running after exiting Docker container

<<:  Summary of practical skills commonly used in Vue projects

>>:  Briefly explain the use of group by in sql statements

Recommend

mysql 5.7.23 winx64 decompression version installation tutorial

Detailed installation tutorial of mysql-5.7.23-wi...

An article teaches you how to use Vue's watch listener

Table of contents Listener watch Format Set up th...

Install three or more tomcats under Linux system (detailed steps)

If you want to install multiple tomcats, you must...

SQL GROUP BY detailed explanation and simple example

The GROUP BY statement is used in conjunction wit...

How to generate Vue user interface by dragging and dropping

Table of contents Preface 1. Technical Principle ...

Reasons why MySQL 8.0 statistics are inaccurate

Preface Whether it is Oracle or MySQL, the new fe...

Ten Experiences in Presenting Chinese Web Content

<br /> Focusing on the three aspects of text...

How to configure https for nginx in docker

Websites without https support will gradually be ...

Introduction to the use of anchors (named anchors) in HTML web pages

The following information is compiled from the Int...

Should I use distinct or group by to remove duplicates in MySQL?

Preface About the performance comparison between ...

Some tips on deep optimization to improve website access speed

Some tips for deep optimization to improve websit...

How to display texture at the position of swipe in CocosCreator

Table of contents 1. Project requirements 2. Docu...

Vue uses v-model to encapsulate the entire process of el-pagination components

Use v-model to bind the paging information object...