Skip to content
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

docker-compose.yaml unfriendly to macos version of docker? #103

Open
zestysoft opened this issue Apr 7, 2022 · 0 comments
Open

docker-compose.yaml unfriendly to macos version of docker? #103

zestysoft opened this issue Apr 7, 2022 · 0 comments

Comments

@zestysoft
Copy link

Short description

docker compose up

Reproduction steps

  1. docker compose up

Expected results

Fully executing environment

Actual results

dagda | <2022-04-07 18:03:01,719> main:46 <500 Server Error for http+docker://localhost/v1.41/containers/6e03ffc31283ab4cff933491b5327318fff32edf27fa97c8efd444ab35c272ab/start: Internal Server Error ("b'Mounts denied: \nThe path /boot is not shared from the host and is not known to Docker.\nYou can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.\nSee https://docs.docker.com/desktop/mac for more info.'")>

While the Docker Desktop app does allow for sharing host level folders, MacOS doesn't have a root /boot folder to share, and one cannot be created because that part of the filesystem is read only.

On which platforms did you notice this:

OS: MacOS
OS Version: Monterey 12.3.1
Python Version: 3.8.13
Docker Version: 20.10.13 (Docker Desktop 4.6.1)

Backtrace

dagda   | Traceback (most recent call last):
dagda   |   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 268, in _raise_for_status
dagda   |     response.raise_for_status()
dagda   |   File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status
dagda   |     raise HTTPError(http_error_msg, response=self)
dagda   | requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+docker://localhost/v1.41/containers/6e03ffc31283ab4cff933491b5327318fff32edf27fa97c8efd444ab35c272ab/start
dagda   |
dagda   | During handling of the above exception, another exception occurred:
dagda   |
dagda   | Traceback (most recent call last):
dagda   |   File "dagda.py", line 35, in main
dagda   |     r = execute_dagda_cmd(cmd=cmd, args=parsed_args)
dagda   |   File "/opt/app/cli/dagda_cli.py", line 43, in execute_dagda_cmd
dagda   |     ds.run()
dagda   |   File "/opt/app/api/dagda_server.py", line 101, in run
dagda   |     self.sysdig_falco_monitor.pre_check()
dagda   |   File "/opt/app/analysis/runtime/sysdig_falco_monitor.py", line 105, in pre_check
dagda   |     self.running_container_id = self._start_container()
dagda   |   File "/opt/app/analysis/runtime/sysdig_falco_monitor.py", line 209, in _start_container
dagda   |     self.docker_driver.docker_start(container_id)
dagda   |   File "/opt/app/driver/docker_driver.py", line 106, in docker_start
dagda   |     self.cli.start(container=container_id)
dagda   |   File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 19, in wrapped
dagda   |     return f(self, resource_id, *args, **kwargs)
dagda   |   File "/usr/local/lib/python3.8/site-packages/docker/api/container.py", line 1111, in start
dagda   |     self._raise_for_status(res)
dagda   |   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 270, in _raise_for_status
dagda   |     raise create_api_error_from_http_exception(e)
dagda   |   File "/usr/local/lib/python3.8/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
dagda   |     raise cls(e, response=response, explanation=explanation)
dagda   | docker.errors.APIError: 500 Server Error for http+docker://localhost/v1.41/containers/6e03ffc31283ab4cff933491b5327318fff32edf27fa97c8efd444ab35c272ab/start: Internal Server Error ("b'Mounts denied: \nThe path /boot is not shared from the host and is not known to Docker.\nYou can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.\nSee https://docs.docker.com/desktop/mac for more info.'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant