LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-15-2016, 09:39 AM   #1
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Rep: Reputation: Disabled
Question 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
 
Old 07-15-2016, 10:41 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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/
 
Old 07-15-2016, 12:05 PM   #3
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Habitual View Post
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 ?
 
Old 07-15-2016, 02:21 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by P.G.Krish View Post
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.
 
Old 07-15-2016, 03:27 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by P.G.Krish View Post
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!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Docker Container Security: What's Next LXer Syndicated Linux News 0 11-18-2015 05:12 PM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM
LXer: Docker container: Backup and Recovery LXer Syndicated Linux News 0 06-16-2015 07:15 PM
[SOLVED] can't ssh into docker container skinney Linux - Server 1 04-25-2014 07:13 PM
[SOLVED] Truecrypt container - timestamp reverts after closing(?) taylorkh Linux - Software 2 03-29-2012 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration