In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What the editor shares with you today is how docker restarts closed containers. Docker container instances can be started, stopped, restarted, and so on. Easy to operate and start quickly.
Restart a container
Docker restart container ID or container name: restart the container directly regardless of whether the container is started or not
1. First, docker ps looks at the running container information.
2. Restart the container with docker restart 59ec
3. Docker ps again to view container information
Docker restart parameter
-t: closes the container's time limit. If the timeout fails to close, use kill to force it to close. The default is 10s, which is used to save the container's own state.
Start a container that has stopped
Docker start container ID or container name
1. Check the information of the container instance that has been paused first
two。 Start the container through docker start 59ec
3. View the currently launched container through docker ps
The container cloud is realized by deploying container services on cluster servers through docker technology, with tens of thousands of Linux images, powerful, lightweight and flexible, can be easily used as cluster services, and VPCs can be built freely and easily.
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.