Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAPPER_DOCKER_SOCKET failing on docker desktop #97

Open
clane2812 opened this issue Jun 17, 2021 · 1 comment
Open

DAPPER_DOCKER_SOCKET failing on docker desktop #97

clane2812 opened this issue Jun 17, 2021 · 1 comment

Comments

@clane2812
Copy link

Hello,
i try to run dapper with docker-desktop as docker-daemon. I need the docker-daemon inside the container, so i set the DAPPER_DOCKER_SOCKET true in the dapper-file like described. This leads to the following call, which fails:

[INFO]  Building docker container
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
time="2021-06-17T12:28:29+02:00" level=debug msg="Failed running C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe [run -i --name app_test-fCUVeDE -v //./pipe/docker_engine://./pipe/docker_engine -e DAPPER_UID=-1 -e DAPPER_GID=-1 -e 
VERSION --privileged app_test:develop]: exit status 1"
time="2021-06-17T12:28:29+02:00" level=debug msg="Deleting temp container app_test-fCUVeDE"
time="2021-06-17T12:28:30+02:00" level=fatal msg="exit status 1"

The problem seems to be the argument -v //./pipe/docker_engine://./pipe/docker_engine

When i manually perform the docker run with the argument -v /var/run/docker.sock:/var/run/docker.sock it works.

Is this a bug, parsing the runtime-args or am i missing something?
Tried many thing but dit not get it working yet.

thanks for your help!

@clane2812
Copy link
Author

got it running:

ENV DAPPER_DOCKER_SOCKET false
ENV DAPPER_RUN_ARGS -v /var/run/docker.sock:/var/run/docker.sock

not the nicest thing but it works for me ... sometimes it can be so easy ... ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant