Score:0

access windows shared folder from docker

br flag

i am using ubuntu20.04 and docker with same system. I want to access windows shared folder from the docker. I am using GIO. I try like this:

gio mount smb://"PC-NAME"/"FOLDER"

this is working on my OS UBUNTU. But it does not work on the docker(same os). give an error.

gio: smb://"PC-NAME"/"FOLDER": volume doesn?t implement mount

what I am doing wrong? I also can use another tools than GIO.

Score:0
us flag

Try the privilege mode from docker. By default docker are missing the capabilities to mount devices, since it requires special privileges.

Example:
$ docker run --privileged -it ubuntu /bin/bash
Vladimir Yanakiev avatar
br flag
no success at this moment. ubutnu is the name of docker right?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.