Docker及Python版本:
- Docker v1.12.3
- Docker Compose v1.8.1
- Docker Machine v0.8.2
- Python 2.7
- Start new machine -
docker-machine create --engine-registry-mirror=https://mhpya9ls.mirror.aliyuncs.com -d virtualbox default
- Select machine -
eval $(docker-machine env default)
- Build images -
docker-compose build
- Start services -
docker-compose up -d
- Create migrations -
docker-compose run web /usr/local/bin/python manage.py migrate
- Grab IP -
docker-machine ip default
- and view in your browser