您好,登錄后才能下訂單哦!
這篇文章主要講解了“docker服務(wù)自動(dòng)重啟設(shè)置”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“docker服務(wù)自動(dòng)重啟設(shè)置”吧!
docker服務(wù)自動(dòng)重啟設(shè)置
systemctl enable docker.service
更新容器重啟
docker update --restart=always <CONTAINER ID>
更多 update 命令 說(shuō)明
docker container update [OPTIONS] CONTAINER [CONTAINER...]
Name, shorthand | Default | Description |
--blkio-weight | Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0) | |
--cpu-period | Limit CPU CFS (Completely Fair Scheduler) period | |
--cpu-quota | Limit CPU CFS (Completely Fair Scheduler) quota | |
--cpu-rt-period | API 1.25+ Limit the CPU real-time period in microseconds | |
--cpu-rt-runtime | API 1.25+ Limit the CPU real-time runtime in microseconds | |
--cpu-shares , -c | CPU shares (relative weight) | |
--cpus | API 1.29+ Number of CPUs | |
--cpuset-cpus | CPUs in which to allow execution (0-3, 0,1) | |
--cpuset-mems | MEMs in which to allow execution (0-3, 0,1) | |
--kernel-memory | Kernel memory limit | |
--memory , -m | Memory limit | |
--memory-reservation | Memory soft limit | |
--memory-swap | Swap limit equal to memory plus swap: ‘-1’ to enable unlimited swap | |
--pids-limit | API 1.40+ Tune container pids limit (set -1 for unlimited) | |
--restart | Restart policy to apply when a container exits |
感謝各位的閱讀,以上就是“docker服務(wù)自動(dòng)重啟設(shè)置”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)docker服務(wù)自動(dòng)重啟設(shè)置這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。