Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker service automatic restart settings

2025-01-16 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report