Dockerised Gui Application Not opening home directory files

I tried to dockerise LabelImg Annotations Tools for labelling purpose. The docker is getting build and when I try to run the LabelImg is opening in root folder but I need to access my home folder for uploading the images for Annotations. How to access my home directory after running my docker?

Did you map a bind volume when you created the container? something like -v /home/${USER}:/home/${USER}. In case you get permision issues with the bind volue, you add the parameter -u $(id -u) to run the container with the uid of your user,

Appart from that: a container is self contained. By itself it does not and should not have access to any folder of the host, unless you specificly use a bind volume to make it available inside the container.

1 Like

Thank you so much it worked for me without any issue.