hempster@lemm.eetoSelfhosted@lemmy.world•Why use Named volume vs Anonymous volume in Docker?English
0·
3 days agoI don’t have to deal with a permissions nightmare when using a named volume, it’s seamless and ensures persistence. No more messing around with PUID and PGID. I rarely need to access the files, and when I do, I’m fine sacrificing a bit of convenience. I can still reach them via cd /var/lib/docker/volumes/(Container_Name)
, and I’ve added a WinSCP shortcut for quick access. Avoiding permission errors is far more valuable for my sanity and time than easy file access.
TIL
sudo docker commit <image id>
So, what happens if you get updates in tags you follow? Do you have to commit again? Isn’t it a temporary measure? I still think, you should rebase a new image on top of whatever tagged version you trail.