在DockerFile中写入的CMD后面的命令不执行主要是因为启动的时候指定了shell
尝试不指定shell如
docker start -ai container
docker run -it REPOSITORY:TAG
python中
client = docker.from_env()
client.containers.run('REPOSITORY:TAG',name='test',tty=True,ports={'9092/tcp':8083},detach=True)