question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid docker ip address when running by cli

See original GitHub issue

When starting eclipse che cli it’s trying to detect what user IP should be used by calling get_docker_host_ip. For docker 1.12.3 on mac this URL would be localhost.

Mentioned function: https://github.com/eclipse/che/blob/master/cli.sh#L285-L297

Urls returned:

INFO: ECLIPSE CHE: Use: http://192.168.65.2:8080
INFO: ECLIPSE CHE: API: http://192.168.65.2:8080/swagger

Valid urls

INFO: ECLIPSE CHE: Use: http://localhost:8080
INFO: ECLIPSE CHE: API: http://localhost:8080/swagger

Problem is most likely to be platform related (OSX and docker) This is really minor issue.

Reproduction Steps:

  1. run che start
  2. Wait for command to execute
  3. Go to url provided in INFO: ECLIPSE CHE: Use: http://192.168.65.2:8080
  4. Should finish with browser timeout
  5. Go to http://localhost:8080 - it works

Che version: master (ebe8ed9fac8223fcafbdc1d08b1afe1fe8aeb446) OS and version: MacOs X El Capitan Docker version: Docker version 1.12.3, build 6b644ec Che install: [command line/source code]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TylerJewellcommented, Nov 13, 2016

Is this the right logic?

  1. If inside che-launcher, codenvy cli, or che cli, and:
  2. if docker_for_mac(), then:
  3. Change display_host=localhost for any presentation of the IP + port to the end user?
0reactions
benoitfcommented, Nov 22, 2016

It has been fixed in master

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error response from daemon: invalid IP address in add-host ...
The feature itself is not yet in the Docker 19.03 (daemon); the PR removed the validation in the cli, delegating the validation to...
Read more >
Windows docker runner error "invalid IP address in add-host"
I have a Windows EC2 instance in AWS, with Docker installed. I have two GitLab runners configured on this instance: a PowerShell runner ......
Read more >
Invalid IP address in add-host: "" + Failed to program FILTER ...
I rebooted, Internet worked fine again, I tried to run docker-compose up again and I got the following output: WARNING: The DOCKERHOST variable ......
Read more >
How can I run a docker container on localhost over the default ...
You can access from another host, or directly at the container's IP address. You don't need to map ports if you are directly...
Read more >
Why does Docker define invalid IP address of service?
Ok, I have found the reason: I tested starting the services with different environment variables for db. And after that I shut the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found