Bug: Couldn't process Docker on Windows
Opened this issue · 1 comments
cebreus commented
Expected Behavior
Installation doesn't end with an error, and the filiph/linkcheck
could be executed.
Actual Behavior
Instalation docker build -t filiph/linkcheck .
falls:
#1 [internal] load build definition from Dockerfile
#1 sha256:250bdb75e69446fa4cc66d19de6b2c2e1e1d56028719c8719be5ba4473780b3b
#1 transferring dockerfile: 2B 0.0s done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 sha256:f42f4b6001b85d056ce810a191359e178133fc940326f0b50498b4041d1db136
#2 transferring context:
#2 CANCELED
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount636110485/Dockerfile: no such file or directory
Steps to Reproduce
- check if Docker is running
- execute in CLI
docker build -t filiph/linkcheck .
Context (Environment)
- Version: 2.0.15+1
- Platform: Windows 10; Git Bash; Docker version 20.10.2, build 2291f61
ZacNespral21 commented
You're missing the repository files and/or the Dockerfile
. Its important you have the entire repository or Dockerfile
and run the build command in the same folder. There are two ways to fix this issue:
- Clone the repo into its own directory then run the build command:
docker build -t filiph/linkcheck .
- Re-produce the
Dockerfile
currently in the repository (located here) in its own directory then run the build commanddocker build -t filiph/linkcheck .
After the image builds successfully you can then use the run command, for example: docker run filiph/linkcheck www.google.com