Comments (11)
It is not OS problem but try do not use root user for the docker for security reason and create a new one user and add it into docker group. We also have such note in readme.md "sudo usermod -aG docker $USER".
from docker-nginx-php-laravel.
Hello
Just tested and I can't simulate error mentioned above. Maybe you have some local changes inside docker-compose.yml or somewhere else. Please try to delete your local docker containers and rebuild from the scratch.
from docker-nginx-php-laravel.
I created a new instance on OCI for test this issue, I got the same error.
nginx: [emerg] host not found in upstream "laravel" in /etc/nginx/conf.d/default.conf:59 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Configuration complete; ready for start up 2022/09/14 09:43:06 [emerg] 1#1: host not found in upstream "laravel" in /etc/nginx/conf.d/default.conf:59 nginx: [emerg] host not found in upstream "laravel" in /etc/nginx/conf.d/default.conf:59
from docker-nginx-php-laravel.
Hello
Please check if all containers are running after "make start". Also please provide next:
1)docker version
2)docker compose version
3)OS
4)output for command "docker ps"
5)details steps how to simulate
Also please make sure that you haven't custom changes inside your local environment.
Thanks in Advance
from docker-nginx-php-laravel.
Docker version 20.10.17, build 100c701
Docker Compose version v2.6.0
Linux instance-20220821-2217 5.4.17-2136.309.5.el8uek.aarch64 #2 SMP Sat Jul 16 13:56:15 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux
I have tested every version and the error has appeared since v2.1 (v2.0 worked fine)
I haven't custom changes, just replaced 'docker-compose' to 'docker compose' in Makefile files.
from docker-nginx-php-laravel.
still waiting requested data for item 4 above. Did you check if laravel container started?
from docker-nginx-php-laravel.
v2.0 worked fine.
latest has error.
Yes, laravel container stopped.
from docker-nginx-php-laravel.
As you can see laravel container is not running and you need to find the reason why it is not running on your local pc. Please check stdoutput for laravel container and which errors do you have there.
from docker-nginx-php-laravel.
The logs is here.
[opc@instance-20220821-2217 docker-nginx-php-laravel]$ sudo docker logs environment3_laravel
[14-Sep-2022 12:17:48] ERROR: [pool www] please specify user and group other than root
[14-Sep-2022 12:17:48] ERROR: [pool www] please specify user and group other than root
[14-Sep-2022 12:17:48] ERROR: FPM initialization failed
[14-Sep-2022 12:17:48] ERROR: FPM initialization failed
I'm not very good at docker environment, but I can provide any information you need.
from docker-nginx-php-laravel.
please write on our support email your skype and we will try to help with OS user issue.
from docker-nginx-php-laravel.
If it's an OS problem then I don't bother you, I will try to fix it myself when I have time.
I'm already using v2.0 version on my project.
Thanks a lot!
from docker-nginx-php-laravel.
Related Issues (20)
- I cant exec it
- an unexpected error
- cron job HOT 1
- error for nginx
- vite & npm missing from container HOT 2
- can't connect to the database HOT 3
- make migrate throws error in SQL HOT 4
- No Redis included? HOT 2
- How to add SSL cert? HOT 1
- Files not copied over into container HOT 5
- Why we need to run composer install inside the docker file, if it will be overwritten with volumes. HOT 11
- Unable to start MySQL 8 container HOT 5
- Composer:latest HOT 4
- domain and subdomain in nginx HOT 1
- Question: Require private repo HOT 2
- Question: Domain name HOT 4
- unable to connect to dbbeaver HOT 2
- php-dev has no installation candidate HOT 2
- Why not create a Docker for choice a laravel version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nginx-php-laravel.