-
Notifications
You must be signed in to change notification settings - Fork 620
Closed
Description
$ docker run -it --privileged docker:dind /bin/sh
/ # docker ps
error during connect: Get http://docker:2375/v1.40/containers/json: dial tcp: lookup docker on 192.168.65.1:53: no such host
/ #
Am I missing something? Is there no way to connect to the daemon without linking another container outside of this container?
Things I've tried:
-
dockerd & -
dockerd-entrypoint.sh & -
Trying to grok
dockerd-entrypoint.shand reverse-engineer -
Trying to set
DOCKER_HOST=localhost(based on Can't make docker login to work from within container #188)$ docker run --rm -ti --privileged -e DOCKER_HOST=localhost docker:dind sh / # docker ps Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
Metadata
Metadata
Assignees
Labels
No labels