-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/proc/mounts -> /etc/mtab
symlink broken
#2419
Comments
Just documenting here that this caused an issue again for us, software like elasticsearch (using old versions) used |
We could probably create an option that would create these symlinks when creating a snapshot. We left this out of containerd by default, because not all users want these populated and it should be up to them to populate them. That is how docker consumes containerd today, it creates the symlinks. |
Going to close this as containerd is much lower level than docker and provides the tools to create symlinks like this at runtime vs auto populating these by itself. |
Description
While running a "base" image (in this case
debian:buster-slim
), it seems like the behavior of symlinking/proc/mounts
to/etc/mtab
has changed and I could not find anything related to it in documentation.I found some reference to symlinking this in the rootFS here but I do not think this code is used anymore.
Opening the issue to confirm if it's expected (could not find anything related to this in the CRI spec) or if it should be kept for compatibility, and documenting the case if people hit the same issue. Happy to contribute with patches and/or to be pointed to code/docs.
Steps to reproduce the issue:
sudo ctr run --rm -t docker.io/library/debian:buster-slim test-leo /bin/bash -c "stat /etc/mtab"
Describe the results you received:
Describe the results you expected:
Same results as running with docker CRI
Output of
containerd --version
:The text was updated successfully, but these errors were encountered: