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

364
Views
docker ejecutar nginx: la última se cuelga indefinidamente

editar: otros contenedores se ejecutan normalmente. docker run hello-world funciona bien.

Estoy tratando de ejecutar la última imagen de la ventana acoplable nginx. Se cuelga indefinidamente. He intentado esto en 2 máquinas virtuales ubuntu de instalación nueva separadas. No tengo idea de cómo proceder. Cualquier ayuda sería apreciada.

 docker run nginx:latest Unable to find image 'nginx:latest' locally latest: Pulling from library/nginx 68ced04f60ab: Already exists 28252775b295: Already exists a616aa3b0bf2: Already exists Digest: sha256:2539d4344dd18e1df02be842ffc435f8e1f699cfc55516e2cf2cb16b7a9aea0b Status: Downloaded newer image for nginx:latest ...

...y se cuelga al final.

y algo de netstat para verificar que los puertos 80 y 443 estén libres.

 sudo netstat -tulpn [sudo] password for josh: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 387/systemd-resolve tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 471/cupsd tcp6 0 0 ::1:631 :::* LISTEN 471/cupsd udp 0 0 127.0.0.53:53 0.0.0.0:* 387/systemd-resolve udp 0 0 0.0.0.0:68 0.0.0.0:* 6179/dhclient udp 0 0 0.0.0.0:631 0.0.0.0:* 685/cups-browsed udp 0 0 0.0.0.0:46233 0.0.0.0:* 485/avahi-daemon: r udp 0 0 0.0.0.0:5353 0.0.0.0:* 485/avahi-daemon: r udp6 0 0 :::5353 :::* 485/avahi-daemon: r udp6 0 0 :::35115 :::* 485/avahi-daemon: r
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Cuando ejecuta este comando docker run nginx:latest , en realidad lo está ejecutando en el modo adjunto, lo que significa

  • Todo el registro de stdout y stderr se imprimirá en la pantalla
  • Si sale del comando usando Ctrl + c o Cmd + c , el contenedor se detendrá.

Como resultado, parece que el comando se bloquea porque ya no se imprime ningún registro.

Puede intentar ejecutar el siguiente comando en su lugar

 docker run -it -d \ --name nginx_container \ -p 80:80 \ -p 443:443 \ nginx:latest

Tenga en cuenta que este comando creará un contenedor nginx en ejecución con el nombre nginx_container ejecutándose en segundo plano (modo separado). Ejecutar este comando nuevamente resultará en la queja de que The container name "/nginx_container" is already in use by container .

Para detener y eliminar ese contenedor, ejecute el siguiente comando

 docker stop nginx_container docker rm nginx_container
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!