DOCKER_HOST needs a portSee original GitHub issue
- Running codenvy:latest via Docker and mounting the docker socket.
- In the terminal of a workspace, running on
codenvy/alpine_jdk8, run a
ACTUAL: Shows an error like:
docker.errors.DockerException: Bind address needs a port: ...
This issue is like https://github.com/docker/docker/issues/19813 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:
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
- Created 6 years ago
- Comments:19 (14 by maintainers)
Top GitHub Comments
I was wondering about the origin of the current
DOCKER_HOSTwhich seems incorrect.
Best for now would be to
unset DOCKER_HOSTby 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.
I am going to close this issue as the nature of the implementation and issue will change with Che on k8s.