Provider not set or invalid #63

Closed
opened 2026-01-19 18:28:48 +00:00 by michael · 2 comments
Owner

Originally created by @JSBmanD on GitHub.

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

Originally created by @JSBmanD on GitHub. 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
Author
Owner

@paolafrancesca commented on GitHub:

@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)

@paolafrancesca commented on GitHub: @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`)
Author
Owner

@JSBmanD commented on GitHub:

@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
@JSBmanD commented on GitHub: @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 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#63