Docker 运行多个命令。

Docker run

1$ docker run image:tag /bin/bash -c "cmd1 && cmd2"

Docker compose

1services:
2  db:
3    commands: /bin/bash -c "cmd1 && cmd2"