[DOCKER] Automatically start the container

Setting method

  1. Start the container automatically.

    docker update --restart=always <container_id>
    
  2. Start the container manually.

    docker update --restart=no <container_id>
    

Confirmation method

  1. 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

Automatically start the container
Recreate the container and then start it
[Docker] Start the container as soon as possible
Wait for the container service to start with docker healthcheck
If the DB container does not start with Initializing database files
Automatically scroll the background with libGDX
Check the contents by docker pull from ECR and start the container
Until you build the docker environment and start / stop the Ubuntu container
[Linux] Start Apache container with Docker
Container does not start with docker-compose
docker-compose Rebuild and start Only one container
Automatically adjust the height of Xib files
Introducing the features of JavaFX SceneBuilder container
The story of updating SonarQube's Docker Container
MySQL container does not start in Docker
[Docker] Start container, start bash in container, delete image
Install the IBM Cloud CLI in the container