开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Is anyone using "dockertws" image on docker-hub? Is it working?


 

Hello,

A number of those errors seem to be either ignorable (the fonts will probably not matter) or important descriptions of attempted connections to the screen (Xrandr) or keyboard (xkb). As for the premain class manifest error, that could be from any number of things, ill-specified jar file manifests, wrong/unexpected java version or any number of similar things.

One of the easiest ways to debug this is to gain access to the container when it is running, establish a vnc connection or similar so you can see it and operate it manually so you can see the steps - can you start the TWS etc. I would expect there are headless versions of this, which will not rely on a running x11 service (screen), but I don't use docker for TWS so I am afraid you'll need to get expertise from another if you can not make progress using the information I have given.

Let us know how you get on,

Best wishes,

M


On Fri, 2 Apr 2021 at 00:44, Tracy Smith <stracy.8539@...> wrote:
Hi everyone,?
I'm new to IB twsapi and interested in docker-nized environment to use TWSAPI.?
I spent last?3 weeks trying to boot?up a docker image called dockertws?listed on docker hub.?
The repository seems well written and reliable however I never succeeded running docker container.


Please let me know if anyone experiences same errors or just me making mistakes!
Any suggestions would be helpful!

Thank you very much in?advance.


Here is my log.
```
docker run \
? ? ? ? ? ? ?--rm -it \
? ? ? ? ? ? ?-e VNC_PASSWORD=123 \
? ? ? ? ? ? ?-p 127.0.0.1:5900:5900 \
? ? ? ? ? ? ?-p 127.0.0.1:7496:7496 \
? ? ? ? ? ? ?-e IBC_USERNAME=XXXX \
? ? ? ? ? ? ?-e IBC_PASSWORD=XXXXX \
? ? ? ? ? ? ?dockertws/dockertws:ci
===LOG STARTS HERE ===
Copying home directory..
VNC password is: 123
19/03/21 05:00:03 Xvnc version TightVNC-1.3.10
19/03/21 05:00:03 Copyright (C) 2000-2009 TightVNC Group
19/03/21 05:00:03 Copyright (C) 1999 AT&T Laboratories Cambridge
19/03/21 05:00:03 All Rights Reserved.
19/03/21 05:00:03 See??for information on TightVNC
19/03/21 05:00:03 Desktop name 'tws-live-default' (8941ee849142:0)
19/03/21 05:00:03 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
19/03/21 05:00:03 Listening for VNC connections on TCP port 5900
Font directory '/usr/share/fonts/X11/Speedo/' not found - ignoring
Font directory '/usr/share/fonts/X11/Type1/' not found - ignoring
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
Obt-Message: XKB extension is not present on the server or too old
Obt-Message: Xinerama extension is not present on the server
Obt-Message: XRandR extension is not present on the server
Xlib: ?extension "XInputExtension" missing on display ":0".
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
Failed to find Premain-Class manifest attribute in /opt/ibc/IBC.jar
Error occurred during initialization of VM
agent library failed to init: instrument
docker_tws: could not find new TWS PID? ? ? ??
===CONTAINER EXITS WITH ERROR (0) ===
```

I tried to solve:
- VNC related problem by? installing fonts for X11. Didn't work.
-?Obt-Message: XKB extension error by installing related linux modules. Not sure what I'm doing.
- IBC error...??IBC repository seems to be maintained well.?



--
+44 (0) 7528 551604?
Gulfstream Software - Winner Risk Management Awards 2010
This message is subject to :

Join [email protected] to automatically receive all group messages.