问题标签 [docker-toolbox]

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 投票
7 回答
102897 浏览

windows - 在 Windows 上使用 docker compose 进行卷绑定

我最近在 Windows 10 上升级了我的 Docker Toolbox,现在我的卷挂载不再工作。我什么都试过了。这是当前的挂载路径:

我收到无效的绑定安装错误。

0 投票
2 回答
3136 浏览

docker - 是否可以在 Visual Studio Code 上使用 Docker Toolbox?

我有 Windows 10 家庭版,因此我必须安装 Docker Toolbox 而不是 Docker。我正在使用 Visual Studio Code 进行开发,它具有 Docker 支持扩展 ( https://github.com/Microsoft/vscode-docker ),它为最常见的 Docker 命令添加了集成。

不幸的是,它在我的情况下不起作用(来自 Visual Studio Code 终端的输出):

相同的命令在 Docker 快速入门终端中运行良好。

是否可以像“Docker Quickstart Terminal”一样将 Visual Studio Code 配置为使用 docker?我应该更改一些系统配置才能使用它吗?

0 投票
2 回答
3135 浏览

nginx - How do I connect to a container hosted in Docker Toolbox?

I am attempting to run my ASP.NET Core 1.1 web API in a Docker container, but I cannot connect to the web API from a browser or curl. To troubleshoot, I have also brought up standard nginx and Apache httpd containers and cannot connect to these either, so I believe this is a Docker/Docker Toolbox/configuration issue rather than a problem with my application.

I'll focus on what I have done with nginx and Apache:

I am running Docker Toolbox on Windows 7 Professional, and everything seems to work as I would expect.

  • Docker commands all work as expected
  • I can access the underlying Windows filesystem
  • I can get the expected results from curl http://localhost (if I start the default IIS website on Windows 7)

So now I shut down IIS and run nginx in a container:

Docker now shows nginx running:

But I cannot connect with either curl (within the Docker Toolbox command prompt) or a web browser in Windows:

I get exactly the same results if I run an Apache 2.4 (httpd) container.

Any ideas? Thanks! Peter

0 投票
1 回答
5115 浏览

docker - docker daemon exec:“dockerd”:在 %PATH% 中找不到可执行文件

我正在尝试运行此命令:

但我得到了以下错误:

exec:“dockerd”:在 %PATH% 中找不到可执行文件

我正在使用带有 VM Virtual Box 的 win7 和 docker-toolbox 1.12.2。

这里有什么问题?有没有办法运行这个命令?

0 投票
1 回答
1353 浏览

docker - 将镜像从本地 docker 不安全的 Docker 注册表拉到 Kubernetes

无法从 Minikube 内的本地 docker 不安全的注册表存储库中提取图像。

我正在使用安装在 Windows 7 下的 Oracle VirtualBox 5.1.6 上的 Linux VM (Upstart) 运行 Docker-toolbox v1.12.2。

我创建了一个 docker 映像并将其推送(标记然后推送)到在 192.168.99.100:5000/image/name 上运行的本地不安全 docker-registry v2。
docker run -d -p 5000:5000 --restart=always --name registry registry:2
在虚拟机内部,在 /var/lib/boot2docker/profile 我已将 flag 添加到 EXTRA_ARGS 中
--insecure-registry 192.168.99.100:5000

docker push& docker pullfromlocalhost:5000/image/name在 Docker(VM) 中运行良好。

_catalog 可以从 Postman 访问:GET http:192.168.99.100:5000/v2/_catalog我可以在注册表中获取图像。

我正在使用以下命令启动我的 Minikube v0.15.0 VM:

minikube start --insecure-registry=192.168.99.100:5000

我在 PROXY 公司下,所以我在命令行(CMD)中添加了代理:
set HTTP/HTTPS_PROXY=my.company.proxy:8080set NO_PROXY={minikube ip}.
然后 Kubernetes 仪表板开始为我工作。

现在真正的问题是,在运行命令时:
kubectl run image-name --image=192.168.99.100:5000/image/name --port=9999 将图像从我的本地 docker 注册表拉到 Kubernetes 中

部署“图像名称”创建

但在 Kubernetes > Deployments 中,我收到以下错误:

无法拉取图像“192.168.99.109:5000/image/name”:192.168.99.100:5000/image/name:latest 的图像拉取失败,这可能是因为此请求没有凭据。详细信息:(来自守护程序的错误响应:获取https://192.168.99.100:5000/v1/_ping:隧道或 SSL 禁止)

任何人都可以在这里帮助解决隧道或 SSL Forbidden 错误,这让我发疯,我已经尝试了很多解决方案来配置 --insecrue-registery 在 docker 内部、Kubernetes 内部或运行 dokcer-registry 时。

顺便说一句,为什么它指的是 v1/_ping?我正在使用 docker 注册表 v2。

0 投票
1 回答
313 浏览

windows - 如何修复docker-machine ip?

我正在运行一个带有 docker-toolbox for windows 的 Docker 容器,我正在努力访问它。

我只能从物理主机访问我的容器,同时使用 LAN IP,例如 192.168.xx

我想以某种方式解决这种情况,我有什么选择?

0 投票
4 回答
9792 浏览

docker - 无法连接到 Anyconnect VPN 上的 docker

我在 windows 上使用 docker 工具箱进行 docker 相关的开发。当我在家庭或办公室网络上时,这工作正常,但当我使用 anyconnect VPN 连接到办公室网络时不起作用。请让我知道是否可以更改网络设置以使其正常工作。

0 投票
1 回答
2145 浏览

docker - 使用 Minikube 的 docker 配置搬运工

有没有办法配置 Portainer 的仪表板以显示 Minikube 的 docker?

搬运工

安装在本地docker(工具箱),在windows 7下的VM上;与本地(内部)docker 的仪表板连接工作正常。

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Minikube

安装在具有不同端口的同一台机器上的另一个 VM 中。

  • 我使用 portainer UI 创建了一个新的 Portainer Endpoint
  • 设置端点 URL (minikubeIp:2375)
  • 选择 TLS 并指向证书文件的路径

c:/users/<myusername>/.minikube/certs

但在仪表板选项卡上不断出现错误:

加载资源失败:服务器响应状态为 502 (Bad Gateway)

在没有TLS的情况下配置端点时,我也遇到了同样的错误。

是否可以将 Portainer 配置为与 Minikube 的 Docker 一起使用?

0 投票
6 回答
19118 浏览

virtualbox - docker toolbox 快速启动失败并在 Windows 10 中出现 VBoxManage.exe 错误

我正在尝试在 Windows 10 Home 中使用 docker。

在安装过程中(在 Virtual Box 部分)我收到一个错误:

无法重命名此连接。已存在具有您指定名称的连接。指定不同的名称。

这可以关闭并继续安装。

但是,当我单击快速启动 ( start.sh) 时,我收到以下错误:

正在启动“默认”...(默认)如果需要,请检查网络以重新创建...无法启动 VM:C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default --type headless failed: VBoxManage. exe:错误:虚拟机“默认”在启动过程中意外终止,退出代码为 1 (0x1)。'C:\Users*****.docker\machine\machines\default\default\Logs\VBoxHardening.log VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface 中可能提供更多详细信息IMachine 步骤“检查默认状态”中似乎出了点问题...按任意键继续...

这个错误已经是工具箱的一个问题,但对某些人有用的解决方案对我不适用:

  • 删除.docker 目录(在C:\Users\<user.name>\.docker);
  • 重新安装 virtualbox 和 docker 工具箱;
  • 在工具箱安装期间选中“使用 NDIS5 驱动程序安装 VirtualBox”。
0 投票
1 回答
1258 浏览

docker - Docker 将文件复制到并挂载相同的文件夹

我正在处理“tomcat:7.0.75-jre8-alpine”基础映像,并希望部署我的 Web 应用程序及其配置文件。以下是我在 Dockerfile 中所做的事情:

我正在使用以下命令从上面的图像创建一个容器:

'/c/Users/jaffy/app' 文件夹最初是空的,我想在其中获取 '/org/app' 的所有内容并保持同步。

最初,所有配置都复制到“/org/app”文件夹中,但是当挂载“/c/Users/jaffy/app”时,“/org/app”会被清理/清空。

我该如何解决这个问题,即主机文件夹最初保持为空,但之后它反映了容器的“/org/app”文件夹及其子目录的确切状态。

提前非常感谢。