Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

No old docker images will be displayed after upgrade

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
holm74
n00b
n00b
Posts: 25
Joined: Wed Nov 21, 2007 9:03 am

No old docker images will be displayed after upgrade

  • Quote

Post by holm74 » Mon Feb 18, 2019 11:09 am

Hi there,

I recently updated app-emulation/docker to 18.09.2.

But typing docker images all my images will not be displayed anymore.


They are still on my hardddisc (under /var/lib/docker/volumes) but as I checked it they will now be stored under /var/lib/docker/overlay2 .


Just to mention: the docker environment is working. I pulled for example wordpress with docker pull wordpress. Afterwards using docker images the image of wordpress will be displayed (and can be used)

So the question is: can I somehow "convert" my old docker image environment to the current one (18.09.02) in a clean way?

Any links, news, whatever?


Thanks for any help,


Holm
Top
r7l
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Sat Feb 16, 2019 6:16 pm

  • Quote

Post by r7l » Mon Feb 18, 2019 11:40 am

There are different drivers for your images. I am using overlay2 anyways. Did you use anything else prior to that update?
Top
holm74
n00b
n00b
Posts: 25
Joined: Wed Nov 21, 2007 9:03 am

  • Quote

Post by holm74 » Mon Feb 18, 2019 12:43 pm

I did not change anything on the flags: before and after the upgrade I used:


USE="container-init overlay seccomp -apparmor -aufs -btrfs -device-mapper -hardened -pkcs11"

So I think this should not be the reason. Haven't read something about that.

Thanks for any hints,

Holm
Top
r7l
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Sat Feb 16, 2019 6:16 pm

  • Quote

Post by r7l » Mon Feb 18, 2019 12:45 pm

Reading your post again, i wonder if you mix up the 2 things. Images are kinda static blobs that come from an outside source while volumes are like local discs that contain your data. If you want to swap out all the images you had, you can simply delete all the images you have on your docker and pull them back in again. Volumes on the other hand should be checked for any important data prior of deleting them.
Top
holm74
n00b
n00b
Posts: 25
Joined: Wed Nov 21, 2007 9:03 am

  • Quote

Post by holm74 » Mon Feb 18, 2019 12:56 pm

I think that is the second best choice: when I pull all the images I am pretty sure all the volumes will not work anymore.

So I think it is better to first try to fix it (never happened before - after all upgrades I still could use my images and boot my volumes without pull them all again) and keep the second choice (pull all again) in mind (because there are a lot of self build images which costs me a lot of time)


Maybe there is a choice to restore the images so I can still use them.
Top
jroth
Tux's lil' helper
Tux's lil' helper
Posts: 76
Joined: Tue Aug 08, 2017 7:16 pm

  • Quote

Post by jroth » Sun Feb 24, 2019 11:40 pm

I also just lost all my docker images in the docker update (but interestingly, it only happened on one of my two Gentoo machines, both of which I updated docker on...). I'd also like to know how to get them back - there's a custom image I'd configured that I don't want to lose the work on.
Top
sgroth
n00b
n00b
Posts: 1
Joined: Fri Mar 08, 2019 9:25 am

  • Quote

Post by sgroth » Fri Mar 08, 2019 9:34 am

I lost my images and containers and got them back.

I ran a few find commands in /var/lib/docker and discovered that the devicemapper subtree of /var/lib/docker files like these:

Code: Select all

image/devicemapper/layerdb/sha256/cd7100a72410606589a54b932cabd804a17f9ae5b42a1882bd56d263e02b6215
image/devicemapper/layerdb/sha256/cd7100a72410606589a54b932cabd804a17f9ae5b42a1882bd56d263e02b6215/cache-id
image/devicemapper/layerdb/sha256/cd7100a72410606589a54b932cabd804a17f9ae5b42a1882bd56d263e02b6215/diff
image/devicemapper/layerdb/sha256/cd7100a72410606589a54b932cabd804a17f9ae5b42a1882bd56d263e02b6215/size
image/devicemapper/layerdb/sha256/cd7100a72410606589a54b932cabd804a17f9ae5b42a1882bd56d263e02b6215/tar-split.json.gz
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85/cache-id
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85/diff
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85/parent
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85/size
image/devicemapper/layerdb/sha256/e8624bf9b6a3d284c2b94ee4355d2a0bc339d2aa9ba4bb5dfbaaa5a80f1a7b85/tar-split.json.gz
I tried adding the device-mapper USE flag and after rebuild and daemon restart the images and containers reappeared.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic