old version image /etc/mtab problem #4603
liuchangyan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our production environment, we just switch containerd runtime from
docker
tocontainerd
, we ran into a problem: there is a container running base on a super old version image which has a physical document/etc/mtab
, it‘s content is :and the
mount
anddf -h
command has no expect results which shound have overlay mount messages:but in normal image, after mounting rootfs,the /etc/mtab should be a softlink to /proc/mounts, and
mount
command will read /etc/mtab by default:this problem is much more like this issue containerd/containerd#2419, and we all know there is inappropriate to add this logic in
containerd
, but it is harder to push others to rebuild the image,so we made a small patch on this issue: https://github.com/opencontainers/runc/compare/main...liuchangyan:runc:main?expand=1, just a draft code.We would like to know if our solution feasible or not, and is there some kind advice for us to resolve this problems? Looking forward to your reply~
Beta Was this translation helpful? Give feedback.
All reactions