Skip to content

ADD failed: stat /var/lib/docker/tmp/docker-builderXXXXXX: no such file or directory #90

@mauri870

Description

@mauri870
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

COPY/ADD should work with absolute paths

Actual behavior

An error occur when trying to ADD/COPY with an absolute path

Sending build context to Docker daemon 90.62kB Step 1/2 : FROM alpine:latest ---> 02674b9cb179 Step 2/2 : ADD /tmp /tmp ADD failed: stat /var/lib/docker/tmp/docker-builder310665597/tmp: no such file or directory 

Steps to reproduce the behavior

FROM alpine:latest ADD /tmp /tmp # COPY fails too 

Output of docker version:

Client: Version: 17.06.0-ce API version: 1.30 Go version: go1.8.3 Git commit: 3dfb8343 Built: Wed Jul 26 18:03:33 2017 OS/Arch: linux/amd64 Server: Version: 17.06.0-ce API version: 1.30 (minimum version 1.12) Go version: go1.8.3 Git commit: 02c1d87617 Built: Wed Jul 26 20:03:39 2017 OS/Arch: linux/amd64 Experimental: false 

Output of docker info:

Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 162 Server Version: 17.06.0-ce Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 316 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4 init version: 949e6fa Security Options: seccomp Profile: default Kernel Version: 4.12.7-1-MANJARO Operating System: Manjaro Linux OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 15.6GiB Name: mauri870-pc ID: 7CHC:HTHK:NHE6:EF7M:F4SU:2GNG:SGX4:XGFG:FSKF:26LD:O5YX:H5GN Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false 

Additional environment details (AWS, VirtualBox, physical, etc.)
Physical. Seems to be related with docker/for-mac#1922

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions