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.

DOCKER_HOST needs a port

See original GitHub issue

Issue Description

Reproduction Steps:

  1. Running codenvy:latest via Docker and mounting the docker socket.
  2. In the terminal of a workspace, running on codenvy/alpine_jdk8, run a docker-compose command.


ACTUAL: Shows an error like: docker.errors.DockerException: Bind address needs a port: ...

This issue is like and the fix is to update DOCKER_HOST to include the port like export DOCKER_HOST="$DOCKER_HOST:2375". Since this environment variable seems to be defined by Codenvy’s workspace, I’m reporting the issue.

Codenvy version: 5.4.1

OS and version:
Linux Ubuntu-like

Docker version: Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:53:29 2017 OS/Arch: linux/amd64

Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:53:29 2017 OS/Arch: linux/amd64 Experimental: false

Codenvy cli.log output: N/A

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (14 by maintainers)

github_iconTop GitHub Comments

wernightcommented, Mar 17, 2017

I was wondering about the origin of the current DOCKER_HOST which seems incorrect.

Best for now would be to unset DOCKER_HOST by default.

Yes mounting the docker sockets works, and it seems there is no way to access the host by port which would be the safest supposing one does setup TLS properly.

TylerJewellcommented, Jul 5, 2017

I am going to close this issue as the nature of the implementation and issue will change with Che on k8s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Container networking - Docker Documentation
To make a port available to services outside of Docker, or to Docker containers which are not connected to the container's network, use...
Read more >
How to access host port from docker container - Stack Overflow
Show activity on this post. Use --net="host" in your docker run command, then localhost in your docker container will point to your docker...
Read more >
Assigning a Port Mapping to a Running Docker Container
Port mapping is used to access the services running inside a Docker container. We open a host port to give us access to...
Read more >
Docker Expose Port: What It Means and What It Doesn't Mean
Exposing a port doesn't make it available when you run a container. To do that, you need to publish your ports. Depending on...
Read more >
Bind container ports to the host - Docker - the Docs
If you want to be more restrictive and only allow container services to be contacted through a specific external interface on the host...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found