Cannot run with docker - open /var/lib/docker/tmp/buildkit-mount669939737/Dockerfile: no such file or directory
peroxy opened this issue · comments
peroxy commented
Trying to run the service on Ubuntu 21.10, using Docker version 20.10.12, build e91ed57.
I get this error:
☁ ~/dev curl https://raw.githubusercontent.com/kubero-dev/ladder/main/docker-compose.yaml --output docker-compose.yaml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 707 100 707 0 0 3399 0 --:--:-- --:--:-- --:--:-- 3432
☁ ~/dev docker-compose up
WARNING: The following deploy sub-keys are not supported and have been ignored: resources.reservations.cpus
Creating network "dev_default" with the default driver
Building ladder
[+] Building 0.1s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 2B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount669939737/Dockerfile: no such file or directory
ERROR: Service 'ladder' failed to build
Gianni C. commented
Did you try to run the image directly with 'docker run'?
Jonas Schubert commented
I think the issue is this line in the docker-compose
file:
build: .
Remove or comment it and it should work.
I think Docker tries to find the Dockerfile to build the image. But you didn't download that I assume, checking your screenshot
Gianni C. commented
I've removed it from compose, since it is mainly used for dev.