Closed andrii-minchekov closed 5 years ago
@menya84 I guess you forgot to start the docker
container first.
it works with my check:
macbook-pro:~ hoatle$ docker run --privileged --name docker -d -v $(pwd):$(pwd) -w $(pwd) docker:17.06.0-dind
Unable to find image 'docker:17.06.0-dind' locally
17.06.0-dind: Pulling from library/docker
88286f41530e: Pull complete
61bf6059e353: Pull complete
0b539e28e9a6: Pull complete
ad3af5fe81b0: Pull complete
2bc3e53b54a0: Pull complete
2fdc1d8eb088: Pull complete
3d2bfa9e3965: Pull complete
3b5bc16f4c09: Pull complete
Digest: sha256:f7f89123cca4f27930c776ee24d8a4959ee8ca9ca20682bd6c680ed8db9ae5ea
Status: Downloaded newer image for docker:17.06.0-dind
c6b3679b52fe4593382c4f94bee38765789fe252f50ba8320c7eff0dc4d721a8
macbook-pro:~ hoatle$ docker run --rm -it --link docker -v $(pwd):$(pwd) -w $(pwd) teracy/ubuntu:16.04-dind-17.06.0-ce bash
Unable to find image 'teracy/ubuntu:16.04-dind-17.06.0-ce' locally
16.04-dind-17.06.0-ce: Pulling from teracy/ubuntu
d5c6f90da05d: Pull complete
1300883d87d5: Pull complete
c220aa3cfc1b: Pull complete
2e9398f099dc: Pull complete
dc27a084064f: Pull complete
78f8bace0915: Pull complete
0b7d59b80d1d: Pull complete
b3cd9d4c8d0f: Pull complete
c021904f6f51: Pull complete
Digest: sha256:e3a895533276efabf8fd59161937215c2ab1b1f477a7d975ce72c3730fffa9e1
Status: Downloaded newer image for teracy/ubuntu:16.04-dind-17.06.0-ce
root@5fa1cdd48280:/Users/hoatle# docker version
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:23:31 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:51:55 2017
OS/Arch: linux/amd64
Experimental: false
http://blog.teracy.com/2017/09/11/how-to-use-docker-in-docker-dind-and-docker-outside-of-docker-dood-for-local-ci-testing/ for more detailed information.
I run on Mac OS next command from README: docker run --rm -it --link docker -v $(pwd):$(pwd) -w $(pwd) teracy/ubuntu:16.04-dind-17.06.0-ce bash Then inside container I run "docker version" and see next error "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ". Please assist