Comments (5)
We just use the servers from /run/systemd/resolve/resolv.conf
when systemd resolved is used.
The 10.0.2.3 address is the slirp4netns forward address. How does you /erc/resolv.conf sysmlink look like? If it is outside of /etc or /run it may not work correctly with slirp4netns
from buildah.
➜ stat --format '%N' /etc/resolv.conf
'/etc/resolv.conf' -> '/run/systemd/resolve/stub-resolv.conf'
The container is successfully reading the stub file, which contains:
➜ rg --no-line-number -v '^#|^$' /etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search lan
127.0.0.53:53
is...
➜ sudo ss -tulpn | awk '/127.0.0.53%lo:53/ {print substr($7, 10, 15)}'
systemd-resolve
and my systemd-resolved
configuration contains:
➜ rg --no-line-number -v '^#|^$' /etc/systemd/resolved.conf.d/*.conf | head -n 3
[Resolve]
DNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
FallbackDNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
We just use the servers from
/run/systemd/resolve/resolv.conf
when systemd resolved is used
This would appear to be an incorrect statement. As my original comment shows, buildah appears to be parsing my upstream resolvers (instead of just reading /run/systemd/resolve/resolv.conf
), as well as the dns server dynamically fetched for my currently active non-loopback network interface (10.100.0.1
).
from buildah.
As said we only read /run/systemd/resolve/resolv.conf
which always contains the upstream resolvers once we detect systemd-resolved is in use. It is completely impossible to use 127.0.0.53 as server in the container as this is a loopback address and nothing will be listening there in the container.
Did you verify which of these servers even work from the container?
from buildah.
A friendly reminder that this issue had no activity for 30 days.
from buildah.
Since we never heard back, closing.
from buildah.
Related Issues (20)
- Secret src not working if env variable matches id HOT 3
- Speeding up Image build on kubernetes / openshift HOT 7
- official published container image HOT 3
- stacktrace on syntax error with empty RUN step HOT 4
- Please make a new release for 1.34.x HOT 9
- Reduce official buildah image size HOT 11
- Error: certificate signed by unknown authority HOT 2
- build "--all-platforms" fails for some images HOT 2
- buildah image v1.34: Error: open /usr/lib/containers/storage/overlay-images/images.lock: permission denied HOT 9
- Document container auth when `XDG_RUNTIME_DIR` is not defined HOT 2
- start container from rootfs HOT 4
- Yum not found in latest quay.io/buildah/stable release HOT 14
- Buildah container image is over 700MB HOT 4
- WORKDIR cannot create a nonexistent directory HOT 5
- Error writing blob: Error saving image to docker engine: Error response from daemon: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version HOT 7
- COPY + heredoc errors with whitelist-style ignore files HOT 3
- SBOM: the Syft preset could use a more suitable set of catalogers HOT 3
- SBOM: merge strategies that deduplicate by name+version are suboptimal HOT 1
- Add `--digestfile` support to `buildah source push`
- buildah never invalidates the cache of a RUN --mount=type=bind layer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildah.