This repository was archived by the owner on Jun 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 330
Unable to set SELENIUM_NODE_HOST to {{CONTAINER_IP}} when using swarm/stack #236
Comments
KZachariassen
added a commit
to KZachariassen/docker-selenium
that referenced
this issue
May 4, 2018
Solves: elgalu#236
I have solved this really simple(and maybe dirty) This gives the value |
Good point, we didn't foresee that this would conflict with templating systems in the future. I'm fine with accepting this as a pull request but I would rename |
Thank you! I have created a PR. |
elgalu
pushed a commit
that referenced
this issue
May 4, 2018
* To solve issue 236 Solves: #236 * Changed to __CONTAINER_IP__
Should be fixed now: https://github.com/elgalu/docker-selenium/releases/tag/3.11.0-p11 |
jemacom
added a commit
to jemacom/docker-selenium
that referenced
this issue
Jul 30, 2018
It took me several hours to figure out this issue on docker swarm, I think it would be great if this solution would be included in docker-compose.md file. |
@algakzru feel free to send us a PR to add it there 👍 |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to deploy selenium on my docker swarm using stack, the problem here is that stack uses go template and will evaluate
{{CONTAINER_IP}}
on the deployment time. There is currently no way to escape this, so my question is: Could you set the default value ofSELENIUM_NODE_HOST
to
{{CONTAINER_IP}}
so if I don't specifySELENIUM_NODE_HOST
in my compose, it will be{{CONTAINER_IP}}
?docker-compose.yml
docker stack deploy -c .\docker-compose.yml selenium
failed to update service selenium_chrome: Error response from daemon: rpc error: code = InvalidArgument desc = expanding env failed: expanding env "SELENIUM_NODE_HOST={{CONTAINER_IP}}": template: expansion:1: function "CONTAINER_IP" not defined
Operating System
Image version
Docker version
The text was updated successfully, but these errors were encountered: