getting mounts failed on docker-compose up

Issue #40 resolved
Kolin Ohi created an issue

Hi - on latest mac docker and latest commits on localstack, I'm getting mount errors running docker-compose up

(it worked yesterday before an update to docker and repulling)

(seems like a similar issue to the one fixed with commit 8124df3641ebc5854dae8c05911a6b3edc171c6e ?)

$ docker-compose up
Creating network "localstack_default" with the default driver
Creating localstack_localstack_1 ...
Creating localstack_localstack_1 ... error

ERROR: for localstack_localstack_1  Cannot start service localstack: Mounts denied:
The path /var/folders/z9/cyz1q4zs6pj93hmznd_9wc5m0000gp/T
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.
.

ERROR: for localstack  Cannot start service localstack: Mounts denied:
The path /var/folders/z9/cyz1q4zs6pj93hmznd_9wc5m0000gp/T
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.
.
ERROR: Encountered errors while bringing up the project.

Comments (3)

  1. Waldemar Hummer Account Deactivated

    Thanks for reporting. As a workaround, you can use the following command:

    TMPDIR=/private$TMPDIR docker-compose up
    

    The problem with recent versions of MacOS is that /var is a symlink to /private/var, and the Docker settings dialog does not allow you to add /var as a file sharing path. There is an open ticket here that seems to be related: https://github.com/docker/for-mac/issues/1298

    We should probably add that to the Troubleshooting section of the README

  2. Waldemar Hummer Account Deactivated

    This has been fixed in recent versions, also the README has been updated. Thanks

  3. Log in to comment