I want to run a Django application in docker on Mac OS X. I installed docker using the get-started tutorial.
I refer to the Django document in the docker library for creating the image, https://github.com/docker-library/docs/tree/master/django , I add the Dockerfile to the new folder of the Django project
The problem is that I am creating an image and successfully starting the container, but whenever I visit container-ip:8000 or http://localhost:8000 , it does not work. Does anyone have any solutions?
Here are the images and container information; docker_test is my application
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE docker_test latest fd6ceebc0c58 13 hours ago 761.5 MB django onbuild 9cbcfd71d759 30 hours ago 728.6 MB CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cbf98a73ea0a docker_test "python manage.py ru 26 minutes ago Up 26 minutes 0.0.0.0:8000->8000/tcp docker_app
python django docker boot2docker macos
wayne Jul 11 '15 at 3:34 2015-07-11 03:34
source share