I create an image using the following Docker file:
FROM ubuntu:16.10 RUN apt-get update && apt-get install -y nginx python3-pip RUN mkdir -p /home/app/ COPY ./nginx.conf /etc/nginx/ COPY . /home/app/ WORKDIR /home/app/ RUN pip3 install gunicorn RUN pip3 install -v -r requirements.txt RUN service nginx restart EXPOSE 80 CMD ["gunicorn", "go2change.wsgi:application"] When creating a container, nginx does not show signs of life, although the process is running.
If you do the docker exec and dial inside:
service nginx restart everything starts working as it should.
What could be the problem?