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 in DevOps & Agile by Shubham
• 980 points
9 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 by Damon Salvatore
• 5,250 points

edited Mar 15 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
• 35,750 points
224 views
0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
39 views
0 votes
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
• 6,480 points
29 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
• 9,050 points
40 views
0 votes
1 answer
0 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
• 56,120 points
56 views
0 votes
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,250 points
39 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,250 points
39 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.