LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Docker container closing during updation (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/docker-container-closing-during-updation-4175584726/)

P.G.Krish 07-15-2016 09:39 AM

Docker container closing during updation
 
Hi ,
I was updated my Docker container using following command
Code:

apt-get update
, After that i closed my container using exit .when i checked another time it shows nothing , my updation will losed .Please tell how to recover my container updated datas

Habitual 07-15-2016 10:41 AM

Did you rebuild the container after updating inside it?
You have to, else the changes don't 'stick'.
That or you shouldn't exit the container, rather detach.

See https://www.howtoforge.com/tutorial/...docker-images/

P.G.Krish 07-15-2016 12:05 PM

Quote:

Originally Posted by Habitual (Post 5576470)
Did you rebuild the container after updating inside it?
You have to, else the changes don't 'stick'.
That or you shouldn't exit the container, rather detach.

See https://www.howtoforge.com/tutorial/...docker-images/

It there anyway to recover ?

TB0ne 07-15-2016 02:21 PM

Quote:

Originally Posted by P.G.Krish (Post 5576495)
It there anyway to recover ?

In every thread you've opened so far, we keep telling you to provide DETAILS, and have pointed you to the Question Guideline links...and you always say "I'm sorry, I will correct my mistakes"...and KEEP DOING IT.

No, there is not, because you didn't follow the procedures and guidelines. You can also restore from backups, re-do the upgrade, and detach properly.

Habitual 07-15-2016 03:27 PM

Quote:

Originally Posted by P.G.Krish (Post 5576495)
It there anyway to recover ?

Code:

docker commit
maybe?

Build your own images
It's been awhile since I had to.
I read this nugget
Code:

docker commit -m "Added json gem" -a "Kate Smith" 0b2616b0e5a8 ouruser/sinatra:v2
at
https://docs.docker.com/engine/tutorials/dockerimages/

Have fun!


All times are GMT -5. The time now is 04:11 PM.