Restart Policy on Containers

 

Ensures containers are restarted  automatically

 

root@vmanalyst.com:~# docker run -d –restart 

always          no              on-failure      on-failure:     unless-stopped  

root@vmanalyst.com~# docker run -d –restart unless-stopped nginx

 

sudo docker run -dt –restart unless-stopped –name web0123 busybox sh

(Visited 76 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.

Leave a Reply