1、启动后发现没有加入自动重启;
2、docker update --restart=always 容器ID
3、立即生效需要重启docker
或等到它下次重启自动生效。
1、docker update -m 512M --memory-swap 512M 容器id(先停止容器追加后重启)