Keeping containers ...
 
Notifications
Clear all

Keeping containers alive during daemon downtime  

  RSS

Anamika
(@anamika)
Noble Member
Joined: 4 months ago
Posts: 1179
31/03/2021 12:00 pm  

I am working on a Linux machine. I have created 3-4 containers. When I am running the containers it starts but as daemon stops container also stops.

I want to keep my containers alive even during the daemon downtime?

Which file should I configure for achieving that?

Can anyone resolve my query?


Quote
Sathish Kumar
(@sathish)
Member Moderator
Joined: 4 months ago
Posts: 1203
31/03/2021 12:00 pm  

Here is what you can try, for keeping your containers alive even if docker daemon stops.

You need to add the configuration to the daemon configuration file. On Linux, this defaults to 

/etc/docker/daemon.json. 

use the below JSON to enable live-restore.

{
  "live-restore": true
}

After that try restarting your docker daemon. You can avoid a restart by reloading the Docker daemon. If you use

 systemd

then use the command :

systemctl reload docker

ReplyQuote
Share: