Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Daemon: Add containers.internal DNS record for podman-4.x to work
With podman 4.x when user run the container with exposed port on mac/windows then internally port is exposed to virtual network (using gvproxy) and for podman 3.x it was `host.crc.testing:7777` but now changed to `gateway.containers.internal`. It's not going to cause regressions with openshift+podman3 as this was already not working because in rhcos podman3 doesn't have gvproxy plugin. This PR is add the `gateway.containers.internal` DNS record so running the containers with exposed port on crc also works as expected for podman 4.x ``` macos-amd64 git:(podman_4.x) ✗ podman run -d -p 8080:80 docker.io/httpd:2.4 766bb336d71402d4747d658f17f139f6d60b8fde238bb4aedd1aa45d96ae24de [core@podman ~]$ curl gateway.containers.internal/services/forwarder/all | jq . [ { "local": "/Users/prkumar/.crc/machines/crc/docker.sock", "remote": "ssh-tunnel://core@192.168.127.2:22/run/podman/podman.sock?key=%2FUsers%2Fprkumar%2F.crc%2Fmachines%2Fcrc%2Fid_ecdsa", "protocol": "unix" }, { "local": "127.0.0.1:2222", "remote": "192.168.127.2:22", "protocol": "tcp" }, { "local": "127.0.0.1:9090", "remote": "192.168.127.2:9090", "protocol": "tcp" }, { "local": ":8080", "remote": "192.168.127.2:8080", "protocol": "tcp" } ] ```
- Loading branch information