1.使用docker-compose up 运行django项目只输出:Watching for file changes with StatReloader
手动进入容器运行项目是正常的,解决方案就是修改docker-compose.yml文件,在build同级添加 tty: true
version: '3'
services:
django:
container_name:
abell-django
build:
context: .
dockerfile: DockerfileBase
正文完