Add container name to hosts entry when using syntax --network container:name #6678
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind feature
Description
When referencing another container with podman run --network container:name, podman creates a host entry that contains referenced containers ip and id.
This requires user to do an additional step of resolving container id when running ad-hoc commands
podman run -it --network container:sonar_mysql -v ./sonar-dump.gz:/sonar-dump.gz --rm mysql:5.7 mysql -h<would be awesome, if I could use sonar_mysql here>
Describe the results you received:
Hosts file has target container ip and id
Describe the results you expected:
Hosts file has target container ip, id and name
The text was updated successfully, but these errors were encountered: