Skip to content
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

Add disable-extra-hosts flag #692

Open
wants to merge 1 commit into
base: 0.1.x
Choose a base branch
from
Open

Conversation

nemani
Copy link

@nemani nemani commented May 11, 2023

This commit adds a new flag to disable extra hosts when running podman-compose up. This helps use podman-compose 0.1.x with podman > v4.1.

Fixes issue containers/podman#15373

Usage: podman-compose -f file.yaml up -d --disable-extra-hosts

This commit adds a new flag to disable extra hosts when running podman-compose up. This helps use podman-compose 0.1.x with podman > v4.1.

Fixes issue containers/podman#15373

Signed-off-by: Arjun Nemani <[email protected]>
@nemani nemani marked this pull request as ready for review May 11, 2023 14:35
@nemani
Copy link
Author

nemani commented May 11, 2023

@muayyad-alsadi Please let me know if you can merge this in and also maybe release a 0.1.12 version with this change. that would allow us to use this script without maintaining a copy.

Let me know if there are any improvements or feedback on the code. :)

@nemani
Copy link
Author

nemani commented May 23, 2023

bump

1 similar comment
@nemani
Copy link
Author

nemani commented Oct 31, 2023

bump

@p12tic
Copy link
Collaborator

p12tic commented Apr 28, 2024

I think the current solution cannot be accepted. It is effectively removing extra_hosts config from compose yml, so why not just remove it from a file instead of introducing the flag.

extra_hosts is completely broken at the moment and a better workaround is simply to remove support for it.

Proper solution would be to add extra hosts to the pod level. This would be an incompatibility with docker compose, but unfortunately we can't solve it another way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants