Keeping containers alive during daemon downtime

0 votes
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?

Thanks.
Mar 15, 2019 in DevOps & Agile by Shubham
• 1,000 points
1,607 views

1 answer to this question.

0 votes

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

I hope it will help you resolve your query.

answered Mar 15, 2019 by Damon Salvatore
• 5,980 points

edited Mar 15, 2019 by Damon Salvatore

Related Questions In DevOps & Agile

+4 votes
2 answers

run docker-daemon with --iptables=false

The docker network model uses iptables to ...READ MORE

answered Aug 2, 2018 in DevOps & Agile by Kalgi
• 52,350 points
10,151 views
0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,093 views
+1 vote
1 answer

How do I get a Docker container's IP address from the host?

Save your docker image as a tar ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by shubham
• 7,340 points
995 views
0 votes
1 answer

Why does Docker for Windows make you pick either Windows or Linux containers?

Windows machine contains several components and one ...READ MORE

answered Nov 15, 2018 in DevOps & Agile by Sophie may
• 10,620 points
704 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
+1 vote
1 answer

How do I list containers in Docker?

To view running containers use  below command: docker ps I you want ...READ MORE

answered Sep 4, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
742 views
0 votes
1 answer

Analyse a container's disk usage in Docker?

Here is a very simple command to ...READ MORE

answered Nov 13, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
1,277 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP