Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
Django in docker. Can't see logs

I am trying to pack a django project into docker environment.

My docker file looks like

FROM python:2.7

EXPOSE 8000

COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

COPY code /code
WORKDIR /code

ENTRYPOINT ./manage.py runserver 0.0.0.0:8000

requirements.txt

Django==1.10.6

Everything works fine but id don't see any output from django server. If I am attaching to container then I can see its output.

But when I am trying to call

docker logs -f "containerid"

I receive nothing

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Try starting the container with the -t flag. In other words add the -t flag to the docker run command

-t, --tty Allocates a pseudo-TTY

Update: docker service update -t service_name , note this cmd has to target a manager node.

When you run docker service create you can include -t flag. The parameters are the same between create and update.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda