In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "docker service automatic restart settings". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "docker service automatic restart settings".
Docker service automatic restart settings
Systemctl enable docker.service
Update container restart
Docker update-restart=always
More update command description
Docker container update [OPTIONS] CONTAINER [CONTAINER...] OptionsName, shorthandDefaultDescription--blkio-weightBlock IO (relative weight), between 10 and 1000, or 0 to disable (default 0)-cpu-periodLimit CPU CFS (Completely Fair Scheduler) period--cpu-quotaLimit CPU CFS (Completely Fair Scheduler) quota--cpu-rt-periodAPI 1.25 +
Limit the CPU real-time period in microseconds--cpu-rt-runtimeAPI 1.25 +
Limit the CPU real-time runtime in microseconds--cpu-shares,-cCPU shares (relative weight)-- cpusAPI 1.29 +
Number of CPUs--cpuset-cpusCPUs in which to allow execution (0-3, 0 to enable unlimited swap--pids-limitAPI 1)-- cpuset-memsMEMs in which to allow execution (0-3, 0 charge 1)-- kernel-memoryKernel memory limit--memory,-mMemory limit--memory-reservationMemory soft limit--memory-swapSwap limit equal to memory plus swap:'- 1'to enable unlimited swap--pids-limitAPI 1.40 +
Tune container pids limit (set-1 for unlimited)-- restartRestart policy to apply when a container exits Thank you for your reading. The above is the content of "automatic restart setting of docker Services". After the study of this article, I believe you have a deeper understanding of the setting of automatic restart of docker services, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.