Skip to content

Docker容器自动重启

容器不存在

shell
docker run --restart=always

容器已存在

shell
docker update --restart=always <CONTAINER ID>

Last updated:

评论