evan-buss / openbooks

Search and Download eBooks
https://evan-buss.github.io/openbooks/
MIT License
1.77k stars 57 forks source link

Running Docker image missing --name flag #133

Open GeorgelPreput opened 1 year ago

GeorgelPreput commented 1 year ago

When deploying and running the Docker image, the application fails and complains about not being given the --name parameter, as in the screenshot below. The Dockerfile indeed runs the application without that parameter:

ENTRYPOINT ["./openbooks", "server", "--dir", "/books", "--port", "80"]

In certain scenarios, such as cloud deployment directly from Docker Hub, it becomes rather convoluted to change this. Two suggestions for mitigation would be:

In the main app:

Thanks!

image

Kr1sDarnok commented 1 year ago

Same issue here, never happened before though

alfdav commented 1 year ago

add the flag --name and invent any name and it will connect. Something like this:docker run -p 8080:80 evanbuss/openbooks --name randomcoolnickname

However, as of today I can't figure out what's blocking the connection and preventing the search function to work. I believe it has to do with the TLS or something of sorts.

frollard commented 1 year ago

Same - using unraid can't push a post-argument, only port path variable label or device...none of which are picked up by the container.

Unrepentant-Atheist commented 11 months ago

I got the same problem, docker run -p 8080:80 evanbuss/openbooks --name randomcoolnickname doesn't help.

canedje commented 6 months ago

same here image didn't help

canedje commented 6 months ago

I did find the answer for unraid:

You need to add: image At Post arguments in advanced mode

etuck commented 6 months ago

And if anyone is using a Docker Compose file the fix is to add a "command" attribute.

version: "3"
services:
  openbooks:
    container_name: openbooks
    image: evanbuss/openbooks:latest
    environment:
      TZ: America/New_York
    ports:
      - 8071:80
    volumes:
      - /path/to/openbooks:/books    
    command: --name CoolName --persist