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

前端 未结 5 2032
醉话见心
醉话见心 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 15:52

    I was facing the same issue with jenkins ssh slave 'jenkinsci/ssh-slave'. However, my case was a bit complicated because it was necessary to pass an argument which contained spaces. I've managed to do it like below (entrypoint in dockerfile is in exec form):

    command: ["some argument with space which should be treated as one"]
    

提交回复
热议问题