Start the container automatically.
docker update --restart=always <container_id>
Start the container manually.
docker update --restart=no <container_id>
Check how to start the container.
docker inspect -f "{{.Name}}{{.HostConfig.RestartPolicy.Name}}" $(docker ps -aq)
/<container_name1> always
/<container_name2>
/<container_name3> always
Recommended Posts