问题描述
我想要做的是非常标准的,所以我不知道我会成功多少。
What I'm trying to do is fairly non-standard, so I'm not sure how successful I'm going to be.
我已经安装Docker for Windows,我可以从Powershell中使用它。
I've installed "Docker for Windows", and I'm able to use it fine from Powershell.
我希望能够使用适当的Linux环境,我已经为Windows 10安装了新的Ubuntu Bash提示。
I would like to be able to use a proper linux environment though, so I've installed the new Ubuntu Bash prompt for Windows 10.
我已经在ubuntu / bash中成功构建了最新的docker客户端。但是当我运行docker ps时,我得到...
I've successfully built the latest docker client in ubuntu/bash. However when I run "docker ps", I get...
无法连接到Docker守护程序。 Docker守护进程是否在此主机上运行?
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
我曾经希望它可以正常工作。
I had hoped that it might just work.
有没有人知道是否可以从ubuntu / bash连接到在Windows中运行的docker守护程序?
Does anyone know if it's possible to connect to a docker daemon running in Windows from the ubuntu/bash?
推荐答案
我想到了。这是非常简单的。我只需要设置以下内容...
I figured it out. It was surprisingly simple. I just had to set the following...
export DOCKER_HOST=tcp://127.0.0.1:2375
这实际上是一个非常酷的设置。
This is actually a really cool setup.
运行在2型虚拟机管理程序中的快速,高效的码头引擎,以及基于ubuntu的开发环境。尼斯: - )
A very fast, efficient docker engine running in a type 2 hypervisor, and a proper ubuntu based development environment. Nice :-)
这篇关于从ubuntu bash连接到Windows 10 Docker守护程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!