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

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 with docker only:

docker run ... dperson/samba arg1 arg2 arg3

But how to do it with docker_compose.yml ?

Right now I use as a workaround:

command: samba.sh arg1 arg2 arg3

But it is not satisfying as I force the redefinition of the entrypoint.

6 Answers
6

Leave a Comment