无法连接到Docker守护程序 - Windows 10 WSL

时间:2018-04-19 13:18:53

标签: docker tcp installation windows-subsystem-for-linux

我正在使用Ubuntu Bash是Windows 10.我一直在努力连接到Docker Daemon。过去有几个问题,我跟着没有运气。

从搜索中我可以看到TCP端点需要打开以连接到Docker守护程序。跟着以下优秀的帖子没有运气:

https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ https://blog.bigfont.ca/run-docker-from-the-wsl/

上述博客的内容是几个月前的内容。可能今天的流程已经改变了。 请指导。

1 个答案:

答案 0 :(得分:0)

从您的WSL命令行尝试以下命令:

echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashr