what is difference between commands and container commands in elasticbean talk

前端 未结 3 545
独厮守ぢ
独厮守ぢ 2020-12-30 19:20

In aws elasticbean talk.

When we setup extensions in .ebextensions

i wonder what is difference between commands and container_commands

3条回答
  •  梦毁少年i
    2020-12-30 19:31

    As an addition to @Tiro and @t10508hn answer I just want to clarify that both commands and container_commands are executed on the host machine.

    To execute commands within the docker container use the Dockerfile.

    This was a point of confusion when I was had to execute a couple of commands with leader_only and assumed that container_commands were actually executed within the container.

提交回复
热议问题