Description
openedon Jan 16, 2019
I have a very simple Dockerfile. The dir/subdir
path contains lots of binaries, about 500MiB over 7,000 files.
FROM ubuntu:18.04
COPY dir/subdir /opt/subdir
It fails with the error message:
=> ERROR [2/2] COPY dir/subdir /opt/subdir
------
> [2/2] COPY dir/subdir /opt/subdir:
------
rpc error: code = Unknown desc = not found: not found
The failure was repeatable.
I have copied the directory in order to reproduce it from another location, and it does not reproduce there.
Subsequent to doing this, the docker build in the original location now works. I observed it re-upload the build context. So I suspect that something went wrong with the build context cache? It's possible that I interrupted the build context cache upload at some point, so I suspect there could be an issue with the build context cache being uploaded.
Sorry for the nebulous issue without a clear reproducer but I wanted to document that I had hit this issue. Please feel free to close if there are no usable leads here.
I suspect that clearing out the build cache would have helped.
I'm running docker for Mac.
Expand docker version and docker info
Client: Docker Engine - Community
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:33:12 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:41:49 2019
OS/Arch: linux/amd64
Experimental: true
Containers: 76
Running: 0
Paused: 0
Stopped: 76
Images: 430
Server Version: 18.09.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
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: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 96ec2177ae841256168fcf76954f7177af9446eb
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 5.817GiB
Name: linuxkit-025000000001
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 40
Goroutines: 112
System Time: 2019-01-16T14:23:06.9713013Z
EventsListeners: 2
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine