liuyuqi-dellpc 4187c3b186 go on 5 years ago
..
wxpay db43dc6208 add nextcloud ,ubuntu-ssh 5 years ago
Dockerfile 4187c3b186 go on 5 years ago
Dockerfile.1 4187c3b186 go on 5 years ago
README.md db43dc6208 add nextcloud ,ubuntu-ssh 5 years ago
docker-compose.debug.yml 4187c3b186 go on 5 years ago
docker-compose.yml 4187c3b186 go on 5 years ago
q.yml db43dc6208 add nextcloud ,ubuntu-ssh 5 years ago
requirements.txt 4187c3b186 go on 5 years ago

README.md

build:

docker build -t my-django-app . docker run --name some-django-app -d my-django-app

你可以访问http://容器 IP:8000 来测试,如果想要通过主机 IP 来访问(如 http://localhost:8000),要执行下面的命令:

docker run --name some-django-app -p 8000:8000 -d my-django-app

docker build -t my-python-app . docker run -it --rm --name my-running-app my-python-app

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp daocloud.io/python:3 python your-daemon-or-script.py

或者: docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp daocloud.io/python:2 python your-daemon-or-script.py

github.com/jianboy/dao:v1.4