I am using Ubuntu Bash is windows 10. I have been struggling with connecting to the Docker Daemon. There has been couple of queries in the past which I followed with not luck.
From the search I could see that the TCP endpoint need to be open for connection to the Docker Daemon. Followed the following excellent posts with no luck:
https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ https://blog.bigfont.ca/run-docker-from-the-wsl/
The content of the above blogs are of few months back. May be process has changed for today. Please guide.
从您的WSL命令行尝试以下命令:
echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashr
If you are getting wsl-2, hypervyser issues
try following hacks
1) Open services from windows start menu
2. Click on Startup type and select Automatic
Note:
If you are getting the issue of " Access denied " while selecting Startup type as Automatic then open your PowerShell and type the following command:
(Make sure you have admin access for PowerShell)
Set-Service LxssManager -StartupType "Automatic"
Done, Now open your docker desktop app
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.