This should not work for you on OSX, but Debian alone. That's why:
When you add ./command.sh to /home/docker/django/django/ , the image builds fine and the file is in the correct directory. But when you up container, you set your local directory "on top" of the one you created in the image. So, there is nothing else ...
I recommend adding command.sh to another location, such as /opt/django/ or something similar, and changing the docker command to ./opt/command.sh .
Or simpler, something like this, here is the complete code:
# Dockerfile FROM python:2.7 RUN mkdir -p /home/docker/django/ WORKDIR /home/docker/django/
source share