everywall / ladder

Selfhosted alternative to 12ft.io. and 1ft.io bypass paywalls with a proxy ladder and remove CORS headers from any URL
GNU General Public License v3.0
4.47k stars 177 forks source link

Cannot run with docker - open /var/lib/docker/tmp/buildkit-mount669939737/Dockerfile: no such file or directory #16

Closed peroxy closed 11 months ago

peroxy commented 1 year ago

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
mms-gianni commented 1 year ago

Did you try to run the image directly with 'docker run'?

JonasSchubert commented 1 year ago

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

mms-gianni commented 1 year ago

I've removed it from compose, since it is mainly used for dev.