[Answer]-Django show "It worked" page instead of my project when I start it docker

1👍

You should modify your Dockerfile like this

FROM python:2.7
MAINTAINER Name name <mail@gmail.com>
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE lms.settings
RUN ls -la /
RUN mkdir /lms
WORKDIR /lms
RUN pip install six Django==1.5.12 numpy python-dateutil Pillow django-colorful gunicorn south djangorestframework djangorestframework-jsonp simplejson psutil
ADD . /lms
RUN python manage.py syncdb --noinput
RUN python manage.py collectstatic --noinput
RUN ls -la 
CMD gunicorn --env DJANGO_SETTINGS_MODULE=lms.settings lms.wsgi --pythonpath '/lms/' --bind 0.0.0.0:8000`  

See the doc for WORKDIR
https://docs.docker.com/reference/builder/#workdir

and this “best practices”

https://docs.docker.com/articles/dockerfile_best-practices/

When you RUN cd /lms it executes the cd and exits, so the next command is not in /lms and also, do not put a / at the end of your directory when you specify the WORKDIR, as you had twice WORDKIR, your default directory was /lms/lms I guess

Leave a comment