extrange / ibkr-docker

Run IBKR Gateway/TWS in a Docker container
185 stars 41 forks source link

Does not work on Apple silicon #4

Closed hmate9 closed 1 year ago

hmate9 commented 2 years ago

The TWS installer comes with its own JVM that isn't compatible with mac silicon.

You get the following error:

#0 6.724 Error unpacking jar files. The architecture or bitness (32/64)
#0 6.724 of the bundled JVM might not match your machine.

Here is a nice writeup on how you can get around this by overriding the JVM used by the installer: https://trenki2.github.io/blog/2018/01/04/trading-with-raspberry-pi/

Note: you will need to download the installer sh file locally and modify it instead of using wget in the dockerfile.

Just leaving this info here in case someone else runs into this same issue.