i'm doing a tutorial in docker, and trying to copy a image from docker, and reference the index.hmtl file im my local file, vinnyx05 -> is my login at docker, im running docker desktop. in using Windows 11. the code is:
PS C:\html> docker build -t vinnyx5/nginx-imersao13:latest .
[+] Building 0.2s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 101B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:latest 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [1/2] FROM docker.io/library/nginx:latest 0.0s
=> ERROR [2/2] COPY html/index.html /usr/share/nginx/html/ 0.0s
------
> [2/2] COPY html/index.html /usr/share/nginx/html/:
------
Dockerfile:3
--------------------
1 | FROM nginx:latest
2 |
3 | >>> COPY html/index.html /usr/share/nginx/html/
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref ccf5a995-3d05-4517-a1ee-20291664f134::ljszgt44a3wte8c2sal6f54p2: failed to walk /var/lib/docker/tmp/buildkit-mount2559770106/html: lstat /var/lib/docker/tmp/buildkit-mount2559770106/html: no such file or directory
i dont know how to fix this, help please? Thanks =)
im trying to do a copy of image, and edit de index.html locally