Docker: copy failed no such file or directory

1.33K viewsDockerdocker dockerfile nginx

Docker: copy failed no such file or directory

Getting error

Step 1/3 : FROM nginx:1.17.1-alpine
---> ea1193fd3dde
Step 2/3 : COPY nginx.conf /etc/nginx/nginx.conf
COPY failed: stat /var/lib/docker/tmp/docker-builder966100923/nginx.conf: no such file or directory

Share:
vito Answered question February 24, 2021
1

You need to have the nginx.conf file at the location where you have the dockerfile. Place the nginx.conf file where your dockerfile is and the issue will be resolved.

Share:
vito Answered question February 24, 2021
0
You are viewing 1 out of 1 answers, click here to view all answers.