Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.5K
Views
docker-compose build nginx: error de red (verifique la conexión a Internet y el firewall)

Hola, estoy tratando de construir un contenedor usando nginx, sin embargo, no puedo avanzar después de estos pasos:

 Building nginx Step 1/17 : FROM nginx:alpine ---> 377c0837328f Step 2/17 : LABEL maintainer="Mahmoud Zalt mahmoud@zalt.me" ---> Running in 8d53a074e85a Removing intermediate container 8d53a074e85a ---> 6053f271c802 Step 3/17 : COPY nginx.conf /etc/nginx/ ---> ba65da2b9c43 Step 4/17 : ARG CHANGE_SOURCE=false ---> Running in 1d31fc76ab76 Removing intermediate container 1d31fc76ab76 ---> 8864e5fb904e Step 5/17 : RUN if [ ${CHANGE_SOURCE} = true ]; then sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories ;fi ---> Running in d0f8c3bd67dd Removing intermediate container d0f8c3bd67dd ---> c6e0c7aaf66f Step 6/17 : RUN apk update && apk upgrade && apk --update add logrotate && apk add --no-cache openssl && apk add --no-cache bash ---> Running in 37305c5f0e55 fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/main: network error (check Internet connection and firewall) WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/community: network error (check Internet connection and firewall) WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory 2 errors; 36 distinct packages available ERROR: Service 'nginx' failed to build: The command '/bin/sh -c apk update && apk upgrade && apk --update add logrotate && apk add --no-cache openssl && apk add --no-cache bash' returned a non-zero code: 2

Uso un ubuntu 18.04 ¿Podría decirme cómo se soluciona?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Según los registros proporcionados, el problema parece ser un problema de red:

 network error (check Internet connection and firewall)

Posibles causas raíz:

  • Su máquina no tiene acceso a Internet
  • Está utilizando un proxy para acceder a Internet.
  • Su cortafuegos no permite el acceso
over 4 years ago · Santiago Trujillo Report

0

No se puede acceder a la web externa desde el contenedor docker. No puedo acceder a ninguna dirección IP externa desde mis contenedores docker, excepto mi propio dominio y algunos de los específicos de GoDaddy.

Si trato de hacer ping al dns de Google, que tendría que ser capaz de hacer ping, obtengo la siguiente respuesta:

 PING 8.8.8.8 (8.8.8.8): 56 data bytes --- 8.8.8.8 ping statistics --- 1 packets transmitted, 0 packets received, 100% packet loss```
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!