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

[Feature-Request] Add support for setting --add-host #29

Open
ThaDaVos opened this issue Mar 4, 2024 · 0 comments
Open

[Feature-Request] Add support for setting --add-host #29

ThaDaVos opened this issue Mar 4, 2024 · 0 comments

Comments

@ThaDaVos
Copy link

ThaDaVos commented Mar 4, 2024

Currently, I've got a custom DNS running at home for giving out custom domain names for my services run at home - even though my host has as only DNS server my custom one, portainer somehow does not resolve these custom domains correctly if they are also defined externally (split-dns), to fix this I added the --add-host parameter to the portainer container, sadly this is not copied over to the compose-unpacker or even configurable, so it's having the same issues my current work around for this is running a while loop using a format script to get the RUN command for compose-unpacker container and adapt it with the --add-host parameters needed and run it manually but this is getting really cumbersome.

So, it would be great if the compose-unpacker copies the --network and --add-host parameters from the portainer container to fix this up.

Command I RUN:

while true; do docker inspect --format "$(curl -s https://gist.githubusercontent.com/efrecon/8ce9c75d518b6eb863f667442d7bc679/raw/run.tpl)" $(docker ps --quiet -f name=portainer-unpacker-*) && break; clear; sleep 1; done
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

No branches or pull requests

1 participant