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

There is a problem when docker deploys noj #1009

Open
sky390 opened this issue Jul 29, 2022 · 1 comment
Open

There is a problem when docker deploys noj #1009

sky390 opened this issue Jul 29, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@sky390
Copy link

sky390 commented Jul 29, 2022

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?

@sky390 sky390 added the bug Something isn't working label Jul 29, 2022
@FYWinds
Copy link

FYWinds commented Jan 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants