Open shelomito12 opened 2 years ago
I think this issue might be related to the UID/GID for the wine user since I don't see any wine/
directory created under home/
RUN groupadd -g 1000 wine \
&& useradd -g wine -u 1000 wine \
&& mkdir -p /home/wine/.wine && chown -R wine:wine /home/wine \
&& env WINEARCH=win32 winecfg
Check out this commit: https://github.com/tickelton/docker-metatrader/commit/d3af03ef8b0284bc51b4e7a0813a8ccc9da6819f
The Dockerfile used to only support 32bit Metatrader4 some time ago but was updated to support 64bit Metatrader 4 and 5. Since that's what almost everybody is using these days, 32bit support was dropped entirely. You might be able to get things to work with the Dockerfile from the above commit.
Let me know how that works for you, then maybe we can figure out a way to support both versions.
1) If that is the case, then the following is not needed in the Dockerfile?
dpkg --add-architecture i386
2) I will start working with a trader and so far he recommended to install Metatrader4 with a demo account so I'm new to this platform... Can you provide a link where to download the 64bit version since some of the websites I visited don't mention/post a 64bit version, and I always end up with a 32bit version of it. -thanks
Yes, you're right, the dpkg architecture is obsolete now.
I stopped using Metatrader a while ago in favour of more low level solutions so I'm not up to date with it and don't actually use this Dockerfile myself any longer. It seems like there is no official 64bit build of Metatrader4 any longer, only of Metatrader5.
That means that the latest version of this Dockerfile effectively only supports Metatrader5.
You can try just using the old version I referenced above. That might work for 32bit Metatrader4. If not it would probably be best to split this up into multiple Dockerfiles e.g. for MT4/32bit and MT5/64bit.
Yes! It would be ideal (for people coming to this repo) to split this up into multiple Dockerfiles e.g. for MT4/32bit and MT5/64bit and put a note about it in the description.
Just as a fyi, this is my mt4 version which seems updated:
Curious to know which low level solution you are using now? Can you maybe provide a reference? Is it open source (JavaScript / API)? 🙂
I just pushed 9d90f2e34166bd671614c0862e2e07db826256d8 which splits the Dockerfile in two. One for MT4/32bit and one for MT5/64bit. I can't test the MT4/32bit setup myself since I don't have any suitable software or accounts any longer. Let me know if this works for you.
Curious to know which low level solution you are using now? Can you maybe provide a reference? Is it open source (JavaScript / API)?
I'm using a proprietary C++ framework that directly interfaces with various broker's FIX APIs (e.g. https://www.fxcm.com/markets/insights/fix-api/).
Hi there, I'm not a Docker expert... can you please point me how/where to add the wine prefix
WINEARCH=win32
for a 32-bit install of Metatrader4 within the Docker file?Install directory in Ubuntu (WLS2):
https://forum.manjaro.org/t/wine-could-not-load-kernel32-dll-status-c0000135/69811