Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: failed to solve: failed to read dockerfile #20

Open
CBerrIT opened this issue Oct 12, 2024 · 1 comment
Open

ERROR: failed to solve: failed to read dockerfile #20

CBerrIT opened this issue Oct 12, 2024 · 1 comment

Comments

@CBerrIT
Copy link

CBerrIT commented Oct 12, 2024

Running 'sudo docker build -t media-cleaner .' spits out this error, does anyone know why and if there is a solution?

sudo docker build -t media-cleaner .
[sudo] password for adminuser:
[+] Building 0.8s (2/2) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.4s
=> => transferring dockerfile: 2B 0.0s
=> [internal] load .dockerignore 0.5s
=> => transferring context: 2B 0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/snap/docker/common/var-lib-docker/tmp/buildkit-mount3021091166/Dockerfile: no such file or directory

@blopez0909
Copy link

did you clone the repository first then run the command? I had the same issue as you at first then I cloned the repository edited the dockerfile and then launched that command from the folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants