dutchcoders / transfer.sh

Easy and fast file sharing from the command-line.
https://github.com/dutchcoders/transfer.sh
MIT License
15.09k stars 1.54k forks source link

Provider not set or invalid #565

Closed JSBmanD closed 1 year ago

JSBmanD commented 1 year ago

I was using it with docker-compose.yml but after last update it stopped working. I have this yml file:

version: "3"
services:
  transfer-sh:
    image: dutchcoders/transfer.sh:latest
    command: >
      sh -c "transfer.sh --basedir /tmp/ --provider local --listener :7878"
    ports:
      - 7878:7878
    volumes:
      - /tmp:/tmp

But when I start it - I get Provider not set or invalid. error

aspacca commented 1 year ago

@JSBmanD not sure how it worked before, since there's no sh binary in the image (it's based on scratch: only transfer.sh binary)

the proper command should be:

command: --basedir /tmp/ --provider local --listener :7878

(even having a shell what you passed as command you should have passed as entrypoint)

JSBmanD commented 1 year ago

@aspacca thank you, it worked!

Just for future I'll post ready yml config:

version: "3"
services:
  transfer-sh:
    image: dutchcoders/transfer.sh:latest
    command: --basedir /tmp/ --provider local --listener :7878
    ports:
      - 7878:7878
    volumes:
      - /tmp:/tmp