erda-project/erda

quickstart.sh docker-compose unable to execute

tomatopunk opened this issue · 3 comments

What happened:

Hi, I used the docker-compose deployment method provided by the official website. An abnormal error occurs when docker-compose is executed
image

/bin/bash -c "$(curl -fsSL https://static.erda.cloud/quick-start/quick-start.sh)"

https://docs.erda.cloud/1.6/manual/install/docker-install.html

What you expected to happen:

quickstart.sh normal work

I used docker-desktop on macos, I noticed that when quickstart.sh is working, it uses opt as the working directory, and also stores some configuration files here.

If here, the opt file is not set in the shared directory, the error will be reproduced. Links here will help
https://docs.docker.com/desktop/mac/

We need to warn about this problem in a more prominent place.

Docker for macOS differs in architecture from Docker for linux, Docker for macOS does not directly access the host operating system, but must start its own Linux VM, which can only access the kernel of the VM, so file sharing is required.

Maybe we can add a check to see if the directory is accessible. Or show the error in a more prominent place.

image

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.