我是用windows电脑运行,开的远程虚拟机。配置好后一直构建失败,找不到Dockerfile
来源:3-17 项目持续集成之Drone环境搭建

千鸾
2024-03-24
latest: Pulling from plugins/docker
latest: Pulling from plugins/docker
Digest: sha256:c5c1a3a6ecd32698621f333613db105ffcbab88c16229a127f3caedb0013aba6
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: 26.0.0
API version: 1.45 (minimum version 1.24)
Go version: go1.21.8
Git commit: 8b79278
Built: Wed Mar 20 15:17:57 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
- /usr/local/bin/docker info
Client:
Context: default
Debug Mode: false
Server:
Containers: 7
Running: 6
Paused: 0
Stopped: 1
Images: 7
Server Version: 26.0.0
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: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 5.4.271-1.el8.elrepo.x86_64
Operating System: CentOS Stream 8
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.73GiB
Name: ct8-deploy
ID: 9e6ffe6c-4aea-4d26-ac3c-c3cb47e076d1
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
192.168.71.18:8443
127.0.0.0/8
Registry Mirrors:
https://6yq1i9nr.mirror.aliyuncs.com/
Live Restore Enabled: false
- /usr/local/bin/docker build --rm=true -f Dockerfile -t y0h82ubh1amxvjh9 . --pull=true --label org.opencontainers.image.created=2024-03-24T04:50:47Z --label org.opencontainers.image.revision=e07c09bcbf279353776177d5a74091bce25415c2 --label org.opencontainers.image.source=http://192.168.71.236:10880/imooc/kubeimooc-web.git --label org.opencontainers.image.url=http://192.168.71.236:10880/imooc/kubeimooc-web
#1 [internal] load build definition from Dockerfile
#1 sha256:23559db7c16388119273960cb2bd727f650ff9d13b4670c925531f2e223076e9
#1 transferring dockerfile: 2B 0.0s done
#1 DONE 0.0s
failed to read dockerfile: open Dockerfile: no such file or directory
exit status 1
1回答
-
暮闲
2024-03-24
提交的代码仓库中有Dckerfile文件吗
00
相似问题