Can Ubuntu version be upgraded inside a Docker container?
Linux - ContainersThis forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can Ubuntu version be upgraded inside a Docker container?
I have a media mangement server running inside a Docker container with a Ubuntu 14.04 distro. I wanted to see if upgrading to 16.10 would be possible, so I installed upgrade-manager and issued the command do-release-upgrade.
The upgrade process seemed to initiate well. The usual tons on command line events echoed away, until it came to a halt after:
calculating the changes
Since then, nothing more happened.
The container runs as before, and the media manager inside it runs as before.
I guess my question is; Is it possible - and a right thing to do, upgrading inside a container like this?
You'd have to run the upgrade (if possibly to complete) and detach.
And then save/rebuild the image so the changes stick in the new container.
Who built the original container?
Typically, depending on what's in the container, you may wish to hold
off on upgrading in this manner since containers seem new to you.
If it's not broke, don't fix it and all that.
Now, my Multimedia Manager is still running smoothly inside the affected container, but after the abrupt halt (described above) i tend to get the following error on most commands related to upgrade, update, package, etc. For instance, if I type lsb_release -ra all I get is Fatal Python Error: getrandom() failed
So now I'm stuck.
I do not know what you mean by "detach" and I do not know how to save/rebuild an image.
I believe Madsonic built the original image, but is there a way to find out, and why is that important to know?
The container solution is Docker running on a QNAP NAS. They call it 'Container Station' if that's what you were asking.....?
Now, my Multimedia Manager is still running smoothly inside the affected container, but after the abrupt halt (described above) i tend to get the following error on most commands related to upgrade, update, package, etc. For instance, if I type lsb_release -ra all I get is Fatal Python Error: getrandom() failed
So now I'm stuck.
I do not know what you mean by "detach" and I do not know how to save/rebuild an image.
I believe Madsonic built the original image, but is there a way to find out, and why is that important to know?
The container solution is Docker running on a QNAP NAS. They call it 'Container Station' if that's what you were asking.....?
Thanks in advance for any help you can give :-)
apt appears broken in the container (from a hard reboot during upgrade, no doubt), so no further updates are likely to complete.
Sorry, I'd contact Madsonic for an updated image.
Or your docker administrator.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.