Interactive Brokers API at port 4003
5.6K
IB Gateway running in Docker with VNC over ssh
The basic idea is that you run a standalone container running the IB gateway, and then interact with the IB API via a docker private network.
docker build --tag riazarbi/ib-headless:no-controller .
docker network create ib
docker run -it --rm --name broker --network ib -p 2222:22 -e SSH=<GITHUB_HANDLE> riazarbi/ib-headless:no-controller
From your laptop:
sh -C -o StrictHostKeyChecking=no -o "UserKnownHostsFile /dev/null" -L 5900:localhost:5900 root@server -p 2222 &
sleep 1
vncviewer localhost:5900
This should launch a VNC session where you can log in to IB. Note that you've only exposed ssh on the broker docker container, and that you need to have a private key to log in.
docker run -it --rm --network ib random_container
Content type
Image
Digest
sha256:7b183e749…
Size
874.8 MB
Last updated
over 2 years ago
docker pull riazarbi/ib-headless