我们如何从github存储库构建docker映像?

时间:2020-06-13 07:36:09

标签: git docker github

我们正在按照本教程中编写的步骤从github存储库获取docker映像:

https://github.com/es-comunidad-intersystems/webinar-gestion-apis

使用以下命令下载git存储库后:

git clone https://github.com/es-comunidad-intersystems/webinar-gestion-apis.git

我们需要使用以下命令从下载的存储库构建映像:

$ docker build . --tag webinar-gestion-apis:stable --no-cache

但是,编写上一条命令后,输出为:

Sending build context to Docker daemon  754.2kB
Step 1/9 : FROM intersystems/iris:2019.3.0.302.0
pull access denied for intersystems/iris, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

我们还阅读了: https://docs.docker.com/engine/reference/commandline/build/

我们已经使用:

$ docker build - < Dockerfile
Sending build context to Docker daemon   2.56kB
Step 1/9 : FROM intersystems/iris:2019.3.0.302.0
pull access denied for intersystems/iris, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

也:

$ docker build .
Sending build context to Docker daemon  754.2kB
Step 1/9 : FROM intersystems/iris:2019.3.0.302.0
pull access denied for intersystems/iris, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

此外,我们尝试在Docker Hub中进行注册,然后通过命令行登录并发出先前的命令,结果相同。

此外,我们还尝试过直接从github存储库中构建它,如下所示:

$ docker build https://github.com/es-comunidad-intersystems/webinar-gestion-apis.git
Sending build context to Docker daemon  642.6kB
Step 1/9 : FROM intersystems/iris:2019.3.0.302.0
pull access denied for intersystems/iris, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

此外,我们已阅读:

编辑:此外,我们还编写了以下命令以在后台运行容器:

$ docker-compose up -d

成为输出:

Creating network "webinar-gestion-apis_default" with the default driver
Pulling iris (webinar-gestion-apis:stable)...
The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling iris (webinar-gestion-apis:stable)...
pull access denied for webinar-gestion-apis, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

我们如何从github存储库构建docker映像?

0 个答案:

没有答案