I have done the following
Steps to reproduce
Apologies for not having a solid repro
Current behavior
I'm setting the network route for containers to reach localhost servers with:
sudo container system dns create host.containers.internal --localhost 203.0.113.113
But occasionally, and randomly, this puts the network into a state where all DNS breaks and I can not egress from the containers. ('curl google.com' fails)
Sometimes this is transient and will start working again
More often than not I have to stop/start the services and then delete and recreate the DNS entry in the container system.
I'm realizing I need to try pinging an external IP address to check whether it is just DNS or actual packet egress
Note - a small difference which may be a docs issue
As I'm working with both podman and apple-container, I use "host.containers.internal" (note the plural) which is what podman sets up by default. The docs for this project use singular: "host.container.internal"
I caught this quickly - but could lead to confusion
Expected behavior
egress to work
Happy to get some suggested commands when this happens to provide more info
Environment
- OS:
- Xcode:
- Container:
Relevant log output
Code of Conduct
I have done the following
Steps to reproduce
Apologies for not having a solid repro
Current behavior
I'm setting the network route for containers to reach localhost servers with:
sudo container system dns create host.containers.internal --localhost 203.0.113.113
But occasionally, and randomly, this puts the network into a state where all DNS breaks and I can not egress from the containers. ('curl google.com' fails)
Sometimes this is transient and will start working again
More often than not I have to stop/start the services and then delete and recreate the DNS entry in the container system.
I'm realizing I need to try pinging an external IP address to check whether it is just DNS or actual packet egress
Note - a small difference which may be a docs issue
As I'm working with both podman and apple-container, I use "host.containers.internal" (note the plural) which is what podman sets up by default. The docs for this project use singular: "host.container.internal"
I caught this quickly - but could lead to confusion
Expected behavior
egress to work
Happy to get some suggested commands when this happens to provide more info
Environment
Relevant log output
Code of Conduct