# 字符串方式
command: /bin/bash -c "cp /app/dtest/config.default.yml /app/config.yml && python -u /app/dtest/tcc.py"
# 另一种方式
command: ["/bin/bash","-c","while","true;","do","sleep","1;","done"]
# 配置文件方式
......
启动后停在cli,等待登录
stdin_open: true # 对应 docker run 中的 -i
tty: true # 对应 docker run 中的 -t