This builds a Docker image with the latest version of Interactive Brokers' IB Gateway, the modern IbcAlpha/IBC for automation, and a VNC server for debugging purposes.
Currently, the API is only enabled in read-only mode, for testing purposes.
docker build . -t ib-gateway-docker
docker run -p 4002:4002 -p 5900:5900 ib-gateway-docker:latest
This will expose port 4002 for the TWS API (usable with e.g., ib_insync) and 5900 for VNC (with default password 1358
). Neither are secure for public internet access, as the expectation is that private, secure services will sit on top and be the only open interface to the internet.