-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/lib/systemd error on OS X. #158
Comments
Hi @willfarrell, how does PR #160 look? |
That should cover it. If not, there is this issue to catch any that didn't read the docs. |
Would there be scope for instructing macOS users better on what to do to solve this? I'm aware that the readme states:
Nevertheless, it would be helpful - would those directories actually exist on macOS - if it was just a matter of adding those paths to the File Sharing Preferences in Docker, as is suggested in the hint that Docker mentions in the error thrown:
Removing them from the |
same issue. macOS ☁ mrdulin docker run -it --net host --pid host --userns host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \
-v /etc:/etc:ro \
-v /usr/bin/docker-containerd:/usr/bin/docker-containerd:ro \
-v /usr/bin/docker-runc:/usr/bin/docker-runc:ro \
-v /usr/lib/systemd:/usr/lib/systemd:ro \
-v /var/lib:/var/lib:ro \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
--label docker_bench_security \
docker/docker-bench-security
Unable to find image 'docker/docker-bench-security:latest' locally
latest: Pulling from docker/docker-bench-security
cd784148e348: Pull complete
48fe0d48816d: Pull complete
164e5e0f48c5: Pull complete
378ed37ea5ff: Pull complete
Digest: sha256:ddbdf4f86af4405da4a8a7b7cc62bb63bfeb75e85bf22d2ece70c204d7cfabb8
Status: Downloaded newer image for docker/docker-bench-security:latest
docker: Error response from daemon: Mounts denied:
The paths /usr/lib/systemd and /usr/bin/docker-runc and /usr/bin/docker-containerd
are not shared from OS X and are 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. |
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
macOS user instructions. ref #158
@mrdulin, I've updated the instructions. |
There is no
/usr/lib/systemd
on Mac. Is this volume mapping required? The test seem to run fine without it? Maybe the docs need to be updated to reflect this?The text was updated successfully, but these errors were encountered: