tickelton / docker-metatrader

MetaTrader4/5 in a container
ISC License
112 stars 53 forks source link

is not owned by you, refusing to create a configuration directory there #9

Open ulises2k opened 1 year ago

ulises2k commented 1 year ago

ulises2k@BANGHO:$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE

**1e704643ed2d** 28 minutes ago 2.17GB ulises2k@BANGHO:~$ docker run -ti --net host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY -v /tmp/mt:/home/wine --entrypoint=/bin/sh **1e704643ed2d** $ cd /home/wine $ dir mt5.exe $ wine mt5.exe wine: '/home/wine' **is not owned by you, refusing to create a configuration directory there**
ulises2k commented 1 year ago

image

tickelton commented 1 year ago

Please follow the README when setting up your container. It describes how to fix this:

Note 2: The container runs as an unprivileged user with UID/GID 1000/1000.  
This UID needs to have write access to the host directory containing your MetaTrader installation.  
If this is not the case, you have to change the IDs in the Dockerfile before building the image.