-
Notifications
You must be signed in to change notification settings - Fork 782
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
podman build
injects empty /etc/resolv.conf
into generated layers
#4242
Comments
(Just like #3523 - |
Ah sorry now that I dig a bit this was discussed in #3525 but not resolved there. I do think we should also fix |
One issue with removing the inode is it prevents the use of readonly containers. |
A friendly reminder that this issue had no activity for 30 days. |
See rancher/elemental#935 and containers/buildah#4242 Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
See rancher/elemental#935 and containers/buildah#4242 Fixes rancher/elemental#935 Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
* Add workaround for buildah DNS issue See rancher/elemental#935 and containers/buildah#4242 Fixes rancher/elemental#935 Signed-off-by: Klaus Kämpf <kkaempf@suse.de> * Update docs/customizing.md Co-authored-by: Andrea Mazzotti <andrea.mazzotti@suse.com> * Update versioned_docs/version-1.2/customizing.md Co-authored-by: Andrea Mazzotti <andrea.mazzotti@suse.com> --------- Signed-off-by: Klaus Kämpf <kkaempf@suse.de> Co-authored-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
Nope we have not looked at this issue for years. The problem is that these inodes need to exist in order to be setup network and potentially other mount points. Buildah could keep track of whether or not it created the inode, and then remove it when it is done. But what about when users want the inode. |
|
I haven't looked at the code but why is this harder than "tar up the overlayfs and don't cross mount points"?
I don't see why any of these files have to exist in the tarball to set up runtime state. At runtime, mount the overlayfs and create the files there right? |
Yes the issue is that when the overlay gets committed as a layer these are saved. |
I think this might be fixed. I built and image with no /etc/hosts, /etc/resolv.conf and /etc/hostname and built an image with this as a from and ended up with no differences after run RUN echo hi. |
Did you build with --no-cache? |
Description
Describe the results you received:
Empty
/etc/resolv.conf
Describe the results you expected:
No such file. For work on https://fedoraproject.org/wiki/Changes/OstreeNativeContainer we want to have clean content. This issue is very similar to #3523
Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:The text was updated successfully, but these errors were encountered: