【发布时间】:2019-01-14 12:30:16
【问题描述】:
我们正在使用 Windows OS 7 开发使用技术堆栈即应用程序。 docker、spring、java8、gradle等。我们已经在我们的机器上安装了docker工具箱。
现在基本映像位于我们组织的 docker 存储库中。但是docker无法识别主机。
我们能够从安装在 linux 机器上的 docker 连接到我们的存储库。在这种情况下,我们对这两个文件进行了更改,即。
1.
/etc/systemd/system/docker.service.d/daemon.conf
here we have added http_proxy and https_proxy.
2.
/etc/docker/daemon.json
here we have mentioned the host name as
{"insecure-registries":["<host-name>"]}
但我们无法在 windows 7 的 docker 工具箱中找到这些文件。
请告诉我们如何解决此问题。
我们目前在 dockerBuildImage gradle 任务中遇到以下错误,它无法下载基础镜像。
:dockerBuildImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dockerBuildImage'.
> Could not build image: Get https:<host-name>/v2/: x509: certificate signed by unknown authority
请指教。
【问题讨论】:
-
以下对我有用。
标签: docker windows-7 docker-toolbox