问题标签 [boot2docker]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
531 浏览

macos - Boot2docker 虚拟机图形

Boot2docker 是在 VirtualBox VM 中运行的轻量级 Linux 发行版。所有基本功能都可以正常工作,我可以在 MacOS X 中使用 docker 容器。

但是我的应用程序需要 OpenGL 渲染,我无法让它工作。如何控制 VirtualBox VM 内部使用的图形加速?我想完全删除任何 3D 加速功能,因为 Mesa 软件驱动程序应该可以完美运行(在 VMware VM 上测试)。

有没有办法像我对普通 VirtualBox 虚拟机那样控制 boot2docker 虚拟机图形设置?

0 投票
1 回答
629 浏览

windows-8.1 - 在 Windows 中从 boot2docker 打开 Ipython 笔记本

我正在使用带有 Windows Pro 8.1 的 Surface Pro 3。我正在尝试从 docker 访问 IPython 笔记本。我正在使用的命令是

笔记本正在运行,但它没有在我的浏览器中打开,这是我运行它时得到的

我的虚拟机的IP地址是192.168.59.103,但是https://192.168.59.103:8888/没有打开笔记本。

0 投票
2 回答
4920 浏览

wordpress - 允许 WordPress 对 Docker 安装的文件夹进行写访问

我有一个适用于 Ubuntu、Nginx、PHP-FPM 和 MySQL 的 Docker 设置。

WordPress 可以写入上传文件夹,我可以在线编辑模板,但是当我尝试升级 WordPress 或插件时,它失败了:

正在解压更新...</p>

无法创建目录。: wordpress

安装失败

我有chmod 777整个 WordPress 文件夹,所以我不确定这是 Docker 还是 WordPress 相关的。我还检查了各种日志,但我发现的唯一相关行是:

192.168.59.3 - - [01/Oct/2014:14:16:58 +0000] "POST /wp-admin/update-core.php?action=do-core-upgrade HTTP/1.1" 200 5576 "/wp- admin/update-core.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"

以下是我创建 Docker 环境的方式:

这是我启动容器的方式:

这是 Nginx 的配置:

0 投票
5 回答
22143 浏览

github - Docker: go get from a private GitHub repo

I'm trying to run a container that will expose a golang service from a package that I have on a private GitHub repo.

Since I am working with GCE, my starter image is google/debian:wheezy.

After installing all the required dependancies and tools, I am running

where the package is a private repo.

I have added my GitHub SSH keys to allow the cloning from the private repo to the docker file:

Still, I am getting an error during the go get process when go tried to clone the repo:

To debug the problem, from the Dockerfile, I am running:

And this tells me there are some problems. It looks like validating the private key is OK but something weird is going on the the public key. This is the complete ssh-keyscan result:

I have tried chmod 600 and chmod 700 on the priv/public keys, this did not help.

Any clues? Has anyone succeeding in running go get that fetches from private repos on debian from docker?

0 投票
0 回答
210 浏览

windows - 在 Boot2Docker 中访问 Windows GPU

有没有办法在 Boot2Docker 中使用 Windows GPU?特别是,我的目标是能够在 Docker 容器内使用 pyaudio 录制音频。我知道在Linux上运行时,可以使用--device标志来适当地挂载/dev/snd/;但是,我需要它才能在 Windows 上运行。

有没有办法从 Boot2Docker VM 内部访问声卡?或者这是否需要单独的 Linux VM?

提前致谢!

0 投票
0 回答
775 浏览

vagrant - 如何在 Vagrant 中配置 Docker 镜像?

更新
我自己找到了解决方案 - 我在这里创建了一个简单的样板:https
://github.com/ezmilhouse/docker 随意从这里继续。

我的 Dockerfilebuild_dir需要各种可用的 docker 镜像(已经构建),我想我可以强制 Vagrant 构建这些镜像作为配置过程的一部分——这没有成功。

当提供者接管时,我如何确保我的所有 docker 映像都已构建?

0 投票
0 回答
747 浏览

macos - 尝试运行 docker 容器的端口转发问题

我是 docker 新手,与网络专家相去甚远,但在尝试运行 docker 容器实例时我发现了一些奇怪现象(正确的词?)。我在 OSX 上运行 docker 并使用此处找到的文档进行设置:http: //viget.com/extend/how-to-use-docker-on-os-x-the-missing-guide

一切似乎都很顺利,然后我通过以下几行设置了端口转发规则:

我可以通过使用 OSX 检查 Oracle VM VirtualBox Manager->Network->Adapter 1->Port Forwarding 中的配置来确认 boot2docker VM 实例。

然后我运行这个命令来获取容器。

我做了一个“docker ps”并得到这个信息。

但是,当我运行“lsof -i :49153”时,我发现没有人在听。我也无法通过浏览器中的“l****host:49153”访问容器。它只是挂起。

奇怪的是,如果我通过以下命令明确设置端口(而不是允许 docker 分配一个):

它似乎有效(lsof -i:49000 显示 TCP LISTEN),我可以确认它正在侦听并且可以通过“l****host:49000”访问容器。但是,它非常缓慢。我不确定两者是否相关,但欢迎任何提示或想法。

0 投票
2 回答
9828 浏览

macos - 在 OSX 上将卷挂载到 Docker 映像

在 Mac 上,如何将卷挂载到 Docker 容器?

在我的 linux 机器上,这很容易。我需要做的就是-v /src/webapp:/opt/webapp运行容器时。但是 Mac 不同,因为我必须运行 boot2docker 才能在 VirtualBox 中运行 VM。我试过跑步

但我明白了

如果我忽略这一点并仍然尝试像这样安装在 VM 上

我明白了

我觉得我错过了一些非常简单的东西,但我无法弄清楚。任何帮助将不胜感激。

0 投票
0 回答
1072 浏览

javascript - 访问在 docker 容器内运行的 node.js Hapi 服务器

我使用 node.js hapi 服务器从 centOS 构建了一个 docker 容器。服务器运行良好,在容器内运行时,我在控制台中得到正确的输出。但是,我不知道该怎么做。

码头集装箱的输出

码头工人文件

0 投票
1 回答
263 浏览

macos - 如何从源代码构建 boot2docker.iso?

我正在尝试在 OSX 上设置 Docker,而不是使用 OSX App 或 Vagrant。我注意到 boot2docker 现在支持 VMWare Guest Additions 来挂载目录。但是,包括这些更改的最新版本尚未发布。那么如何从 GitHub 存储库构建一个新的 boot2docker.iso 文件呢?

Boot2docker 包含有关如何执行此操作的文档:BUILD.md

不幸的是,这些文件对我来说没有意义。我不确定构建该 ISO 文件需要做什么。