gpt4 book ai didi

Docker - 无法准备上下文 : unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:54 25 4
gpt4 key购买 nike

我今天刚刚下载了适用于 Windows 10 64 位的 Docker 工具箱。我正在阅读教程。我在尝试使用 Dockerfile 构建镜像时收到以下错误。

步骤:

  • 推出 Docker Quickstart 终端。
  • 创建后测试docker。
  • 按照“构建您自己的镜像”网络链接中的说明准备 Dockerfile
  • 运行以下命令

docker build -t docker-whale .

错误:$ docker build -t docker-whale 。

无法准备上下文:无法评估 Dockerfile 路径中的符号链接(symbolic link):GetFileAttributesEx C:\Users\Villanueva\Test\testdocker\Dockerfile:系统找不到指定的文件。

顺便说一句: 我尝试了 @ https://github.com/docker/docker/issues/14339 提到的几个选项

docker info

输出:

Containers: 4
Running: 0
Paused: 0
Stopped: 4
Images: 2
Server Version: 1.10.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 20
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.1.17-boot2docker
Operating System: Boot2Docker 1.10.1 (TCL 6.4.1); master : b03e158 - Thu Feb 11 22:34:01 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 996.2 MiB
Name: default
ID: C7DS:CIAJ:FTSN:PCGD:ZW25:MQNG:H3HK:KRJL:G6FC:VPRW:SEWW:KP7B
Debug mode (server): true
File Descriptors: 32
Goroutines: 44
System Time: 2016-02-19T17:37:37.706076803Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
provider=virtualbox

最佳答案

在执行以下命令时,

docker build -t docker-whale .

检查 Dockerfile 是否存在于您当前的工作目录中。

关于Docker - 无法准备上下文 : unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59589257/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com