Sign inSign up

forhire/ibgateway

By forhire

•Updated over 5 years ago

Image
2

2.2K

forhire/ibgateway repository overview

⁠Interactive Brokers Gateway Docker

IB Gateway running in Docker with IB Controller⁠ and VNC

  • TWS Gateway: v978.2d
  • IBC: 3.8.4-beta.2
⁠Docker Hub image
⁠HELM3 chart for deploying to Kubernetes
⁠Getting Started
> git clone
> cd ib-gateway-docker
> docker build .
> docker-compose up
⁠Expected output
Creating ibgatewaydocker_tws_1 ...
Creating ibgatewaydocker_tws_1 ... done
Attaching to ibgatewaydocker_tws_1
tws_1  | Starting virtual X frame buffer: Xvfb.
tws_1  | find: '/opt/IBController/Logs': No such file or directory
tws_1  | stored passwd in file: /.vnc/passwd
tws_1  | Starting x11vnc.
tws_1  |
tws_1  | +==============================================================================
tws_1  | +
tws_1  | + IBController version 3.2.0
tws_1  | +
tws_1  | + Running GATEWAY 960
tws_1  | +
tws_1  | + Diagnostic information is logged in:
tws_1  | +
tws_1  | + /opt/IBController/Logs/ibc-3.2.0_GATEWAY-960_Tuesday.txt
tws_1  | +
tws_1  | +
tws_1  | Forking :::4001 onto 0.0.0.0:4003\n

You will now have the IB Gateway app running on port 4003 and VNC on 5901.

See docker-compose.yml⁠ for configuring VNC password, accounts and trading mode.

Please do not open your box to the internet.

⁠Testing VNC
  • localhost:5901

vnc

⁠Demo Accounts

It seems that all of the demo accounts are dead for good:

  • edemo
  • fdemo
  • pmdemo
⁠Troubleshooting

Sometimes, when running in non-daemon mode, you will see this:

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

You will have to remove the container docker rm container_id and run docker-compose up again.

Tag summary

Content type

Image

Digest

Size

313.7 MB

Last updated

over 5 years ago

docker pull forhire/ibgateway:version-1.17.2