Docker 运行多个命令

Docker 运行多个命令

Docker run

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

Docker compose

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