How to pass arguments to entrypoint in docker-compose.yml

前端 未结 5 2033
醉话见心
醉话见心 2020-12-12 15:35

I use this image: dperson/samba

The image is defining it\'s own entrypoint and I do not want to override it.

I need to pass arguments to the entrypoint, easy

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 16:00

    Whatever is specified in the command in docker-compose.yml should get appended to the entrypoint defined in the Dockerfile, provided entrypoint is defined in exec form in the Dockerfile.

    If the EntryPoint is defined in shell form, then any CMD arguments will be ignored.

提交回复
热议问题