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

130
Views
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 answers
Answer question

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 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!