-
Notifications
You must be signed in to change notification settings - Fork 82
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
[BUG] docker-compose - windows - Cannot connect to the Docker daemon at unix:///var/run/docker.sock #524
Comments
@doublefx Thanks for your feedback! Try changing the volume mounts path
|
I tried but it failed to start the nginx service. Weirdly, when using
It works: {"Platform":{"Name":"Docker Desktop 4.13.1 (90346)"},"Components":[{"Name":"Engine","Version":"20.10.20","Details":{"ApiVersion":"1.41","Arch":"amd64","BuildTime":"2022-10-18T18:18:35.000000000+00:00","Experimental":"false","GitCommit":"03df974","GoVersion":"go1.18.7","KernelVersion":"5.15.68.1-microsoft-standard-WSL2","MinAPIVersion":"1.12","Os":"linux"}},{"Name":"containerd","Version":"1.6.8","Details":{"GitCommit":"9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6"}},{"Name":"runc","Version":"1.1.4","Details":{"GitCommit":"v1.1.4-0-g5fd4c4d"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"20.10.20","ApiVersion":"1.41","MinAPIVersion":"1.12","GitCommit":"03df974","GoVersion":"go1.18.7","Os":"linux","Arch":"amd64","KernelVersion":"5.15.68.1-microsoft-standard-WSL2","BuildTime":"2022-10-18T18:18:35.000000000+00:00"} So, I'm puzzling at figuring out why the create cluster cannot communicate with docker via sock. |
This should be a bug in |
If you mean from directly from the CLI, see my other issue |
Try this docker compose(which only running autok3s container with host port mapping), then access ui using
|
Yes, got it working with: services:
autok3s:
image: cnrancher/autok3s:v0.6.0
init: true
ports:
- 80:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $HOME/.autok3s/:/home/.autok3s/
environment:
- AUTOK3S_CONFIG=/home/.autok3s/ Do you know any other way to get a virtual host on the top? |
All right, a bit better: services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
autok3s:
image: cnrancher/autok3s:v0.6.0
init: true
ports:
- 8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $HOME/.autok3s/:/home/.autok3s/
environment:
- AUTOK3S_CONFIG=/home/.autok3s/
- VIRTUAL_HOST=autok3s.vcap.me Which allow to connect to But it still created: And can connect to it from |
I will support enviroment |
Yes please as not having the cluster in the UI, I cannot do any action on it (Delete, Clone, ...) @Jason-ZW
|
Also, I wonder if it has some connectivity consequences as none of the create pods succeeded, see FailedCreatePodSandBox in the above log, what do you think? |
Can your environment access the Internet? Unfortunately I think |
I can manually |
I will try your steps on windows tomorrow, then give your feedback message. |
@doublefx Using Windows 11 22H2 can not reproduce your situation.
|
Hi @Jason-ZW I would love to see the same on my side but the server node does not seem to have any connectivity to the outside word:
|
This could be a network issue in your environment. |
I will try today with the last RC |
Describe the bug
Not sure whether it is a missconfiguration or a bug
To reproduce
Steps to reproduce the behavior:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock
OS: Windows 11 / Docker Desktop v4.13.1 (WSL2)
AutoK3s Version: v0.6.0
The text was updated successfully, but these errors were encountered: