khast3x / Redcloud

Automated Red Team Infrastructure deployement using Docker
MIT License
1.2k stars 200 forks source link

Local deployment fails on macOS #3

Closed Ullaakut closed 5 years ago

Ullaakut commented 5 years ago

👋🏽@khast3x !

Decided to give Redcloud a try since it looks pretty awesome, but I haven't been able to deploy it locally on my macOS machine.

Screenshot 2019-03-17 at 16 29 39

Here is some info that might help in understanding what's going on:

When running docker-compose up --build -d manually to get the logs, I'm getting:

Starting portainer-app       ... error
Starting redcloud_cert_gen_1 ...

ERROR: for portainer-app  Cannot start service portainer: b'Mounts denied: \r\nThe path /opt/portainer/data\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more iStarting redcloud_cert_gen_1 ... done
portainer-proxy is up-to-date

ERROR: for portainer  Cannot start service portainer: b'Mounts denied: \r\nThe path /opt/portainer/data\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.

Which seems to be related to the fact that the volume /opt/portainer/data that is specified in the compose file is not shared by default on macOS. Unfortunately, it seems that the current version of Docker for Mac doesn't even allow users to mount anything in /opt 😞

Conclusion

In order to support macOS deployment, it seems all that is needed is to allow users to customize the path in which portainer data is stored 🤔

Let me know if that makes sense to you!

Ullaakut commented 5 years ago

(For info, after changing the volume location to ./data, works like a charm)

khast3x commented 5 years ago

Hey there, thanks for giving redcloud a try!
Glad to know changing the volume source solved the mounting issue. Started reading a bit more about it.
Not quite sure how to tackle this issue in a viable way :thinking:
I'll update the documentation so as to replace with /tmp/ for OSX deploys in troubleshooting for now

khast3x commented 5 years ago

Closing with commit https://github.com/khast3x/Redcloud/commit/266c5a79721196c0d26710043d625ed6a189e77d