san3Xian / randomMark

用github repo做一些随记好了,内容在issues里。github page中仅为试验田🧪
https://qc47.net
4 stars 0 forks source link

use jq tool to enable/disable docker live-restore feature #18

Open san3Xian opened 4 years ago

san3Xian commented 4 years ago

Enable

jq '. + {"live-restore": true}' /etc/docker/daemon.json
systemctl reload docker
docker info | grep -i live

Disable

jq '. + {"live-restore": false}' /etc/docker/daemon.json
kill -SIGHUP $(pidof dockerd)
docker info | grep Live

More examples

https://gist.github.com/joar/776b7d176196592ed5d8