Skip to content

No such file or directory #1884

@noose

Description

@noose

Expected behavior

Everything works - docker should be able to copy file to container

Actual behavior

Docker can't copy file to container

Information

File is in the path. On the first run - it works but every other run fails. I can reset to factory defaults and it's works only once after that.

Docker on OSX, stable & edge

Diagnostic ID: EE8F6325-5827-41F6-86A2-0E71E1814CEF
Dockerfile

FROM generic:development
MAINTAINER Pawel Kobylak <pawel.kobylak@jeppesen.com>

COPY pom.xml /app/pom.xml
RUN mvn dependency:resolve -T 4 --no-snapshot-updates

COPY . /app

RUN mvn clean package -B -T 4 --no-snapshot-updates -DskipTests
CMD java -jar -XX:+HeapDumpOnOutOfMemoryError -Dspring.profiles.active=docker target/*.jar
docker build -t generic:feature_docker
Sending build context to Docker daemon  2.048kB
Step 1/6 : FROM maven:3.5-jdk-8-alpine
 ---> 5435658a63ac
Step 2/6 : MAINTAINER Pawel Kobylak <pawel.kobylak@jeppesen.com>
 ---> Using cache
 ---> 7838bb2c8990
Step 3/6 : COPY .m2.settings.xml /root/.m2/settings.xml
COPY failed: stat /var/lib/docker/tmp/docker-builder547436794/.m2.settings.xml: no such file or directory
$ ls -al
drwxr-xr-x   6 pawel.kobylak  CORP\Domain Users   204 Jul 19 10:10 .
drwxr-xr-x  37 pawel.kobylak  CORP\Domain Users  1258 Jul 19 10:08 ..
-rw-r--r--   1 pawel.kobylak  CORP\Domain Users  1510 Jul 19 10:03 .m2.settings.xml
-rw-r--r--   1 pawel.kobylak  CORP\Domain Users   222 Jul 17 08:52 Dockerfile
-rw-r--r--   1 pawel.kobylak  CORP\Domain Users  3587 Jul 14 17:01 pom.xml
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 2
Server Version: 17.06.1-ce-rc1
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 logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.36-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 9.743GiB
Name: moby
ID: RECG:C3MN:5GZP:KUSG:YCHQ:4K54:KM7S:6OCF:TFJZ:FBNX:SGDX:WIUX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 17
 Goroutines: 28
 System Time: 2017-07-19T08:12:10.43966909Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

exact same configuration works on linux

Steps to reproduce the behavior

docker build .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions