How to transform "docker run" commands into railway.json or Custom Start Command
karlojacmenjak
HOBBYOP

2 years ago

Hi there!

I'm trying to make a service using this docker image: https://hub.docker.com/r/pixboost/transformimgs and I want to allow changing the port value and setting the 3 options as environment variables. The docs describe on how to set this using docker run like so:

$ docker run -p 8080:8080 pixboost/transformimgs [OPTIONS]

So my question is is there a way to do this with the railway.json or Custom Start Command? I had a hard time trying to find the answer beforehand so I'm asking this here as a future reference for anyone who needs this

Closed

5 Replies

karlojacmenjak
HOBBYOP

2 years ago

N/A


2 years ago

@Ping for toast this would take you 3 minutes to make a template


lucasps136
HOBBY

2 years ago

I have the same question. I run docker run -p 8080:8080 wppconnect/server-cli:latest --name wppserver --secretKey $SECRET_KEY --port $PORT --frontend localy, but I have no idea how to set this in the start command. I tried in many ways, but it did not work


goose
TRIAL

a year ago

+1, I have an entrypoint on the dockerfile that I want to keep, but want to add options after. I've tried running just the options in the start command and I've tried using the entrypoint command with options in the start command, but neither appears to work. If I run the container without options or overridden start command the container works but fails because it needs options.


goose

+1, I have an entrypoint on the dockerfile that I want to keep, but want to add options after. I've tried running just the options in the start command and I've tried using the entrypoint command with options in the start command, but neither appears to work. If I run the container without options or overridden start command the container works but fails because it needs options.

a year ago

Please open your own thread, this is solvable.


Status changed to Closed brody over 1 year ago


Loading...