Docker container start command

spacemandev-git
PRO

a month ago

I'm trying to run the surfpool/surfpool docker container with the following start command

surfpool start --rpc-url '${{MAINNET_RPC_URL}}' --host 0.0.0.0 --no-tui

but it's saying exec format error, is there a better way to format this for the start command that pulls in the env variable that i've set in my railway ?

Solved

0 Replies

spacemandev-git
PRO

a month ago

ae5590da-b026-49ba-bffb-f813e242311f


a month ago

When deploying an image or Dockerfile, you need to wrap the start command in a shell for variable interpolation.


spacemandev-git
PRO

a month ago

getting a exec container process `/bin/sh`: Exec format error

command:

/bin/sh -c "/bin/surfpool start --rpc-url $MAINNET_RPC_URL --host 0.0.0.0 --no-tui"

spacemandev-git
PRO

a month ago

ah wait i think it's because it's an arm64 image instead of amd64


spacemandev-git
PRO

a month ago

i tried building from source too, but still getting exec format error


a month ago

Yep, we do not have any arm64 hardware, x86_64 (amd64) only.


spacemandev-git
PRO

a month ago

if i have a Dockerfile in project, is there a way to get railway to build it as amd64?


a month ago

We will always build with amd64.


spacemandev-git
PRO

a month ago

can close this issue, i was able to work around it and use a different provider to host the surfpool image and just host my other services on railway


a month ago

!s


Status changed to Solved brody 27 days ago


Docker container start command - Railway Help Station