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

Unable to install nginx #1490

Closed
JohnnyLeWebDeveloper opened this issue Apr 19, 2018 · 6 comments
Closed

Unable to install nginx #1490

JohnnyLeWebDeveloper opened this issue Apr 19, 2018 · 6 comments
Labels

Comments

@JohnnyLeWebDeveloper
Copy link

Info:

  • Docker version ($ docker --version): Docker version 18.03.0-ce, build 0520e24- Laradock commit ($ git rev-parse HEAD): 0c41fce- System info (Mac, PC, Linux): Mac
  • System info disto/version: High Sierra

Issue:

Unable to install nginx within laradock.

Starting laradock_nginx_1 ... error

ERROR: for laradock_nginx_1 Cannot start service nginx: driver failed programming external connectivity on endpoint laradock_nginx_1 (b7f62984dcaa2038d16300f705bebee3f56f82d6b80835fb51389c37562d2551): Error starting userland proxy: Bind for 0.0.0.0:443: unexpected error (Failure EADDRINUSE)

ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint laradock_nginx_1 (b7f62984dcaa2038d16300f705bebee3f56f82d6b80835fb51389c37562d2551): Error starting userland proxy: Bind for 0.0.0.0:443: unexpected error (Failure EADDRINUSE)
ERROR: Encountered errors while bringing up the project._____

Expected behavior:

Being able to access localhost


Reproduce:

Docker command works for everything but nginx via this ->
docker-compose up -d nginx mysql phpmyadmin redis workspace


Relevant Code:

@lbsfei
Copy link

lbsfei commented May 5, 2018

Me too.
Logs as below:
Step 6/11 : RUN apk update && apk upgrade && apk add --no-cache bash && adduser -D -H -u 1000 -s /bin/bash www-data
---> [Warning] IPv4 forwarding is disabled. Networking will not work.
---> Running in f0135f51d3a8
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.7/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.7/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory
2 errors; 28 distinct packages available
ERROR: Service 'nginx' failed to build: The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache bash && adduser -D -H -u 1000 -s /bin/bash www-data' returned a non-zero code: 2
Why ?
please help me!
thanks!

@matthijs-neijenhuijs
Copy link

me too!

@limhu
Copy link

limhu commented May 21, 2018

@lbsfei @matthijs-neijenhuijs

I solved this issues with changed the apk mirror. (nginx/Dockerfile)

  1. cd laradock && vim nginx/Dockerfile
    image

  2. docker-compose build --no-cache nginx

@akanbitoluwase
Copy link

Anyone able to resolve this particular issue. I'm having something similar

@stale
Copy link

stale bot commented Feb 2, 2020

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.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants