Docker 使用s2i为本地存储库构建映像

Docker 使用s2i为本地存储库构建映像,docker,openshift,s2i,Docker,Openshift,S2i,我正在尝试使用s2i本地源代码存储库构建一个映像。到目前为止,我设法创建了图像,并使用- s2i创建测试图像s2i\U脚本。之后,我尝试使用-s2i build在本地构建图像。test image test image app我在存储库目录中运行此命令 尝试构建后得到的结果: pulling image error : Error response from daemon: pull access denied for test-image, repository does not exist

我正在尝试使用s2i本地源代码存储库构建一个映像。到目前为止,我设法创建了图像,并使用-
s2i创建测试图像s2i\U脚本
。之后,我尝试使用-
s2i build在本地构建图像。test image test image app
我在存储库目录中运行此命令

尝试构建后得到的结果:

pulling image error : Error response from daemon: pull access denied for test-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
pulling image error : Error response from daemon: pull access denied for test-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
ERROR: An error occurred: unable to get test-image:latest
ERROR: Suggested solution: check image name, or if using a local image set the builder image pull policy to "never"
ERROR: If the problem persists consult the docs at https://github.com/openshift/source-to-image/tree/master/docs. Eventually reach us on freenode #openshift or file an issue at https://github.com/openshift/source-to-image/issues providing us with a log from your build using log output level 3.

也进行了
docker登录
,成功了…但当我再次尝试构建时,错误是相同的。我遗漏了什么或做得不对?

它失败的原因是我没有提取一个基本映像来将其用于源代码。所以我拉了centos7基础镜像-
podman拉centos/python-36-centos7
,然后我尝试再次构建,它成功了-
s2i构建。centos/python-36-centos7测试图像应用程序