目录
- 前言
- 1. COPY failed: stat /xxxx: no such file or directory
- 2. invalid from flag value builder: pull access denied for builder, repository does not exist or may require 'docker login'
- 3. failed to pull image "node:alpine" with specified policies [always]: toomanyrequests
- 4. docker: Error response from daemon: Conflict. The container name "/manong-container" is already in use by container "xxxx". You have to remove (or rename) that container to be able to reuse that name.
前言
关于这部分的博客
记录使用gielab-cicd上书写yml遇到的错误
具体错误大致如下,以及我怎么解决这些bug
1. COPY failed: stat /xxxx: no such file or directory
出现如下问题:
Step 8/8 : COPY --from=builder manong/website/manong/dist /usr/share/nginx/html
COPY failed: stat /xxxx: no such file or directory
ERROR: Job failed: exit code 1
关于这个问题,错误日志显示没有这个目录
具体截图如下所示:
解决方法如下:
通过容器进入docker exec -it 容器id /bin/bash
查看其内部文件,因为我是npm build进行打包,可能关键的目录写错了,导致无法复制