docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.21k stars 1.23k forks source link

expose daemon on tcp://192.168.99.100:2376 without TLS in docker toolbox for windows WSL #894

Open jeethesh-kotian opened 4 years ago

jeethesh-kotian commented 4 years ago

Hi All,

Background: I am using windows 10 Home basic OS, so I need to install Docker Toolbox to use docker in my system. I have a running docker client in my system and everything is working fine. I now need to be able to use docker in my Window's WSL ubuntu instance.

Problem Statement: As per my research, I have exported below in .bashrc on my WSL export DOCKER_HOST=tcp://192.168.99.100:2376 But still, I am getting the below error when using docker:

root@LAPTOP-F9O4PA9U:~# docker version
Client: Docker Engine - Community
 Version:           19.03.11
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        42e35e61f3
 Built:             Mon Jun  1 09:12:34 2020
 OS/Arch:           linux/amd64
 Experimental:      false
Error response from daemon: Client sent an HTTP request to an HTTPS server.

More Details about my setup: image

I am not getting any document that helps me to expose tcp://192.168.99.100:2376 on Docker toolbox as we have for docker desktop. So please suggest me with some solution.

Thanks, Jeethesh

stephen-turner commented 4 years ago

I'm moving this to the docker/toolbox repository. However, Docker Desktop will run on the latest version of Windows Home (2004), so that might be an even better solution for you.

jeethesh-kotian commented 4 years ago

I'm moving this to the docker/toolbox repository. However, Docker Desktop will run on the latest version of Windows Home (2004), so that might be an even better solution for you.

Thanks a lot, Stephen!!! I was able to update my Windows Home OS to version 2004 and it allowed me to install Docker Desktop. Thanks a lot for the suggestion. This allowed me to connect my WSL ubuntu with docker.

For others reference, here is the link for windows update and the entire WSL2 setup instructions - https://www.microsoft.com/en-in/software-download/windows10 https://docs.docker.com/docker-for-windows/wsl/

jeethesh-kotian commented 4 years ago

I will keep this ticket active for a while, as this issue still is a genuine issue for many Windows users so if we could get a solution for this then it would be awesome.