A Docker container encapsulating Interactive Brokers client and gateway. The client and gateway both run unattended, and the client's GUI is also made available over VNC.
This is adapted from the recipe by Robert Laverty provided here.
The build argument IBC_VERSION is provided for selecting the IB client version. If you want to
choose a custom version, use --build-arg to specify it.
First, create an account on Interactive Brokers. Set it up so it would only require password authentication (i.e. no two-factor).
The /tmp directory must be made volatile inside the container. Otherwise, left-over files could cause Xvnc errors in restarts. The example below shows how to set this when launching the container.
A container built from this repository is available on Docker-Hub. Example command for using it:
docker run --restart=unless-stopped -d -p 127.0.0.1:5900:5900 -p 4001:44001-e IB_USER=YOUR_USER -e IB_PW=YOUR_PASSWORD --name ib-gateway --mount type=tmpfs,destination=/tmp yitzikc/ib-gateway
Ports being exposed:
IB Client GUI can be viewed on port 5900 using VLC. Since there's no password, you might want to only publish this port if actually needed, or only publish it to 127.0.0.1. The example above shows how to make the port available only locally.
Content type
Image
Digest
Size
339.6 MB
Last updated
almost 6 years ago
docker pull yitzikc/ib-gateway