Docker background continues to run

Containers running through docker run xxx will not be restarted when the server is restarted.

There are two ways to achieve this, the self-starting of the container.

Way a 
docker run xxx later, 
you can use docker update xxx container the above mentioned id --restart = Always 

Second way 
in Docker - plus restart compose.yml in: always to 

be by 
Docker Update -h View More Help

 

Guess you like

Origin www.cnblogs.com/yjp372928571/p/12727430.html