In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to restart the image in the docker container. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
How to restart the image in the docker container?
Docker settings for automatic image restart, and settings for image restart: docker restart imageid
When running the docker container, you can add the following parameters to ensure that the container will restart automatically every time the docker service is restarted:
Docker run *-- restart=always
If it is already started, you can use the following command:
Docker update-restart=always
Sometimes when the server has a network, it also prompts an error and needs to restart docker.
Log in to the root account-View the image ID- turn off the image-start the image
Open the terminal and enter: su -, enter the password (password is not displayed, press enter after you finish)
Enter docker ps
Docker stop [git's container ID] docker start [git's container ID]
After restarting, type localhost in the browser and log in to the gitlab account. If you can log in successfully, you will restart successfully.
This is all about how to restart the image in the docker container. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.