[英]Docker Build via GitLab Container Registry Failed
I follow the instructions on GitLab Container Registry but in the end I always receive the below error message on my Powershell line.我按照GitLab 容器注册表上的说明进行操作,但最后我总是在 Powershell 行上收到以下错误消息。
Sending build context to Docker daemon 14.44MB
Error response from daemon: unexpected error reading Dockerfile: read /var/lib/docker/tmp/docker-builder160316193/Dockerfile: is a directory
And, what I'm doing previously are:而且,我之前在做的是:
docker login registry.gitlab.com/<my_username>/<my_repo_name> -u <my_username> -p <my_personal_access_token>
我使用我的凭据登录,因为我的 repo 是私有的: docker login registry.gitlab.com/<my_username>/<my_repo_name> -u <my_username> -p <my_personal_access_token>
cd C:\Users\<username>\source\repos\<repo_name>
然后我输入cd C:\Users\<username>\source\repos\<repo_name>
docker build -t registry.gitlab.com/<my_username>/<my_repo_name>.
最后,我运行docker build -t registry.gitlab.com/<my_username>/<my_repo_name>.
which should be very straightforward according to dear GitLab but I always go the error message I shared in the beginning of my question.根据亲爱的 GitLab 应该非常简单,但我总是 go 我在问题开头分享的错误消息。I run through on similar questions asked on internet and on this site, but can't figure it out what I am missing.我在互联网和这个网站上提出了类似的问题,但无法弄清楚我错过了什么。
Thank you in advance.先感谢您。
A Dockerfile is a file with instructions on how to build a docker image. Dockerfile 是一个文件,其中包含有关如何构建 docker 映像的说明。 In your case it is just an empty folder.在您的情况下,它只是一个空文件夹。
Maybe you can start here: Docker Get Started Build Image也许您可以从这里开始: Docker 开始构建映像
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.