Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

The path /config is not shared from OS X and is not known to Docker. #2

Open
Redzli opened this issue Jul 28, 2020 · 1 comment
Open

Comments

@Redzli
Copy link

Redzli commented Jul 28, 2020

Hi I followed your README steps but got the error below on MacOS 10.14.6:

➜ docker container run \
    --cap-add=NET_ADMIN \
    --device=/dev/ppp \
    --rm \
    -v /config:/etc/openfortivpn/config:ro \
    myon/fortivpn-socks5
docker: Error response from daemon: Mounts denied:
The path /config
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERRO[0000] error waiting for container: context canceled

My config file is in the same directory as where I ran the docker run command.

Can you please help me take a look?

@Tosainu
Copy link
Owner

Tosainu commented Jul 30, 2020

Thank you for trying it!

Please try -v $PWD/config:/etc/openfortivpn/config:ro instead of -v /config:/etc/openfortivpn/config:ro. If the error still occurs, this documentation (https://docs.docker.com/docker-for-mac/#file-sharing) may help you.

By the way, I have never tested it on the macOS before. Could you please let me know the results?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants