请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

plugins/docker 构建的时候报错啦,没找到dockerfile,那这个文件又是存放在哪里呢?

图片描述

latest: Pulling from plugins/docker
Digest: sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb
Status: Image is up to date for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
Detected registry credentials
+ /usr/local/bin/docker version
Client:
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:45:09 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          23.0.1
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.5
  Git commit:       bc3805a
  Built:            Thu Feb  9 19:48:42 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.18
  GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
+ /usr/local/bin/docker info
Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 22
  Running: 14
  Paused: 0
  Stopped: 8
 Images: 28
 Server Version: 23.0.1
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2456e983eb9e37e47538f59ea18f2043c9a73640
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
 Kernel Version: 3.10.0-1160.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 9.087GiB
 Name: art.local
 ID: 6b1e6eb9-e29e-4273-bb96-400b49a5a645
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  art.local:8081
  127.0.0.0/8
 Registry Mirrors:
  https://registry.cn-hangzhou.aliyuncs.com/
 Live Restore Enabled: false

+ /usr/local/bin/docker build --rm=true -f Dockerfile -t ffnvuuhn6x3affeu . --pull=true --label org.opencontainers.image.created=2023-10-30T10:04:14Z --label org.opencontainers.image.revision=a00292f7a394c2c4a4e102a244dca8492e920e81 --label org.opencontainers.image.source=http://192.168.2.115:10880/mch/k8s-mch.git --label org.opencontainers.image.url=http://192.168.2.115:10880/mch/k8s-mch
#1 [internal] load .dockerignore
#1 sha256:59eb568d9cd0484d1a577fbadd43f83a633b4d4bd813726b76857c81c8d7b527
#1 DONE 0.0s

#1 [internal] load .dockerignore
#1 sha256:59eb568d9cd0484d1a577fbadd43f83a633b4d4bd813726b76857c81c8d7b527
#1 transferring context: 2B done
#1 DONE 0.1s

#2 [internal] load build definition from Dockerfile
#2 sha256:f799bc4e1777f0e38fa8aec87bb15f89b5c921384d3ab27c5593b03f863f496c
#2 transferring dockerfile: 2B done
#2 DONE 0.2s
failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3324989727/Dockerfile: no such file or directory
exit status 1

正在回答 回答被采纳积分+3

1回答

暮闲 2023-10-30 21:23:37

同学你好 你的项目目录下有Dockerfile文件吗?

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_慕函数1536532 #1
    没有,我现在加上了,不过爆了另外的错误
    #3 [internal] load metadata for docker.io/library/alpine:latest
    #3 sha256:d4fb25f5b5c00defc20ce26f2efc4e288de8834ed5aa59dff877b495ba88fda6
    #3 ...
    
    #4 [internal] load metadata for docker.io/library/golang:1.20.10-alpine3.17
    #4 sha256:05f0a9b570f503f23063239ef53656b5dcbbd0576d6bbefe89d5d96b5cca906f
    #4 DONE 11.1s
    
    #3 [internal] load metadata for docker.io/library/alpine:latest
    #3 sha256:d4fb25f5b5c00defc20ce26f2efc4e288de8834ed5aa59dff877b495ba88fda6
    #3 ERROR: failed to copy: httpReadSeeker: failed open: server message: insufficient_scope: authorization failed
    ------
     > [internal] load metadata for docker.io/library/alpine:latest:
    ------
    alpine:latest: failed to copy: httpReadSeeker: failed open: server message: insufficient_scope: authorization failed
    exit status 1
    回复 有任何疑惑可以回复我~ 2023-10-30 21:46:58
  • 暮闲 回复 提问者 qq_慕函数1536532 #2
    这是哪一步骤报错的呢?同学你把drone.yml和Dockerfile的内容贴出来我看看。
    回复 有任何疑惑可以回复我~ 2023-10-30 21:52:47
  • 提问者 qq_慕函数1536532 回复 暮闲 #3
    可以了,构建成功了,谢谢
    回复 有任何疑惑可以回复我~ 2023-10-31 00:39:07
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信