Here are the solutions for some known issues and pitfalls.
$ ./run.sh get_netapp volume -H sim91
docker: Error response from daemon: Mounts denied:
The path /usr/local/check_netapp_pro/etc
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
The hosts folder /usr/local/check_netapp_pro
must be shared with docker. Some super secure OS’s like macOS require the admin to explicitly allow this. Please consult your local dockers user-interface as informed by the error-message.
The Store-files on the host are created by the root-user since they are created out of the docker container. This is not a problem by itself but may be not what you want in your environment. The solutions depend on the docker implementation.
Here is one workaround we found. Add the following line to your run.sh
:
--user "$(id -u):$(id -g)"
Se also https://vsupalov.com/docker-shared-permissions/
Some getters still read the port from the authfile. Make sure to remove any port entry from the authfile so that the port can be chosen depending on the protocol (https with port 443 is the default, --no-ssl
switches to http with port 80).