Expected behavior
COPY should work with relative paths
Actual behavior
An error occurs when trying to COPY:
Sending build context to Docker daemon 9.216kB
Step 1/25 : FROM python:3.6-alpine
---> c3a4a35c9244
Step 2/25 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 73473a868596
Step 3/25 : RUN apk update && apk add --virtual build-deps gcc python3-dev musl-dev && apk add postgresql-dev && apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev && apk add libffi-dev openssl-dev py-cffi
---> Using cache
---> 836535f4c88d
Step 4/25 : RUN addgroup -S django && adduser -S -G django django
---> Using cache
---> 16e570f295a7
Step 5/25 : COPY ./requirements /requirements
COPY failed: stat /var/lib/docker/tmp/docker-builder562137812/requirements: no such file or directory
▸ Error: docker build exited with 1
Output of docker-compose version
docker-compose version 1.16.1, build 6d1ac21
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j 26 Sep 2016
Output of docker version:
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:09 2017
OS/Arch: darwin/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:45:38 2017
OS/Arch: linux/amd64
Experimental: true
Output of docker info:
Containers: 7
Running: 3
Paused: 0
Stopped: 4
Images: 180
Server Version: 17.09.0-ce
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: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.49-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: moby
ID: BXBD:PDCF:AE7P:3TC3:5PS6:Z4I5:FYNS:3ZPO:WFKY:BFNF:2EAZ:3POV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 44
Goroutines: 50
System Time: 2018-03-22T00:27:48.196365212Z
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
Additional detail
I have been running docker-compose -f production.yml build
followed by docker-compose -f production.yml up
for a docker-compose ps
of
Name Command State Ports
--------------------------------------------------------------------------
luup_caddy_1 /usr/bin/caddy --conf /etc ... Exit 1
luup_celerybeat_1 /entrypoint.sh /start-cele ... Exit 2
luup_celeryworker_1 /entrypoint.sh /start-cele ... Exit 2
luup_django_1 /entrypoint.sh /gunicorn.sh Up
luup_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
luup_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
I can login according to these instructions using the Heroku CLI without a problem.
Following these instructions I have renamed each of my Dockerfiles to Dockerfile.uniqueProcessType and am pushing using heroku container:push django caddy postgres --recursive
.
Any of the Dockerfiles I heroku container:push --recursive
will return the same COPY failed: stat /var/lib/docker/tmp/docker-builder014946065/requirements: no such file or directory ▸ Error: docker build exited with 1
I have tried running the command in all levels of the tree.
I have also tried incrementally removing partial to all of my .dockerignore in case.
docker-compose -f production.yml build
or docker-compose -f local.yml build
will build without issue.