run.sh
not found when running docker-compose up
#192
-
Hi, when running
In the
So I'm not sure how the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, it's not easy to answer with the information available. but i will try to give you some pointers. If I pull the images docker pull ghcr.io/gnzsnz/ib-gateway:stable
docker pull ghcr.io/gnzsnz/ib-gateway:latest and then I run docker run --rm -it ghcr.io/gnzsnz/ib-gateway:stable ls -l /home/ibgateway/scripts
total 24
-rwxr-xr-x 1 ibgateway ibgateway 6700 Oct 25 09:05 common.sh
-rwxr-xr-x 1 ibgateway ibgateway 4099 Oct 25 09:05 run.sh
-rwxr-xr-x 1 ibgateway ibgateway 371 Oct 25 09:05 run_socat.sh
-rwxr-xr-x 1 ibgateway ibgateway 410 Oct 25 09:05 run_ssh.sh
docker run --rm -it ghcr.io/gnzsnz/ib-gateway:latest ls -l /home/ibgateway/scripts
total 24
-rwxr-xr-x 1 ibgateway ibgateway 6700 Oct 22 11:06 common.sh
-rwxr-xr-x 1 ibgateway ibgateway 4099 Oct 22 11:06 run.sh
-rwxr-xr-x 1 ibgateway ibgateway 371 Oct 22 11:06 run_socat.sh
-rwxr-xr-x 1 ibgateway ibgateway 410 Oct 22 11:06 run_ssh.sh The scripts are on the right place and the image should work without problem. As it does when i run it locally. If you are building your image locally, you might have different results. But that will depend on your changes and I can't help there. To answer your question regarding the scripts, they arrive to Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how you ended up with this is what i get when i do $ docker run --rm -it ghcr.io/gnzsnz/ib-gateway:10.30
Unable to find image 'ghcr.io/gnzsnz/ib-gateway:10.30' locally
10.30: Pulling from gnzsnz/ib-gateway
Digest: sha256:f183ce6fa48ed16ab635963760b8af0dd0e40f884eb1b41719ca3af8fbe735dc
Status: Downloaded newer image for ghcr.io/gnzsnz/ib-gateway:10.30
*************************************************************************
.> Starting IBC/IB gateway
*************************************************************************
.> Starting Xvfb server
.> SSH tunnel disabled
.> Usign default Java heap size 768m.
.> VNC server disabled
.> Invalid TRADING_MODE: which makes sense because no env is set. if you are not modifying the image, there is no need to clone the repo, you can just download i would suggest to start with a clean state # delete local images
docker rmi ghcr.io/gnzsnz/ib-gateway:10.30 ghcr.io/gnzsnz/ib-gateway:stable
# get new image
docker compose pull
# run
docker compose up |
Beta Was this translation helpful? Give feedback.
@gnzsnz, changing version in
docker-compose.yml
from10.30
tostable
fixed this issue.Thanks.
@sanurielf, since I didn't build the docker image myself, the file encoding shouldn't matter, as the only file I was using was
docker-compose.yml
, I did try changing the encoding from UTF-8 to ASCII and EOF to LF for that file, but there was no effect. You can easily change these in VSC. Thanks.