ZsgsDesign/NOJ

There is a problem when docker deploys noj

sky390 opened this issue · 1 comments

After installing docker and docker compose according to the official documents, I created docker compose YML, when I run docker compose up, there is a problem with container n****-noj-1. The error is as follows:

navoj-noj-1           | Creating laravel application
navoj-noj-1           | cp: cannot create regular file '/app/./. editorconfig': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./. env': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./.env. example': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./. gitattributes': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./. gitignore': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./.styleci. yml': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./README. md': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ app': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./ artisan': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ bootstrap': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./composer. json': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./composer. lock': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ config': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ database': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./package. json': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./phpunit. xml': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ public': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ resources': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ routes': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./server. php': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ storage': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./webpack.mix. js': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./tests/CreatesApplication. php': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ tests/Feature': Permission denied
navoj-noj-1           | cp: cannot create regular file '/app/./tests/TestCase. php': Permission denied
navoj-noj-1           | cp: cannot create directory '/app/./ tests/Unit': Permission denied
navoj-noj-1           | cp: preserving times for '/app/./ tests': Operation not permitted
navoj-noj-1           | cp: cannot create directory '/app/./ vendor': Permission denied
navoj-noj-1           | cp: preserving times for '/app/.':  Operation not permitted
navoj-noj-1 exited with code 1

Then it exited abnormally. I ended docker compose, deleted all containers and tried to run again, but my docker and server crashed because of this. The prompt is as follows:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
"docker rm" requires at least 1 argument.

I tried to restart the system, but failed:

root@*****:~/****# reboot
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.

I have reinstalled the system and deployed it twice, but it still fails. How can I solve it?

After installing docker and docker compose according to the official documents, I created docker compose YML, when I run docker compose up, there is a problem with container n****-noj-1.

Same issue