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

前端 未结 5 2017
醉话见心
醉话见心 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条回答
  •  Happy的楠姐
    2020-12-12 15:45

    The command clause does work as @Karthik says above.

    As a simple example, the following service will have a -inMemory added to its ENTRYPOINT when docker-compose up is run.

    version: '2'
    services:
      local-dynamo:
        build: local-dynamo
        image: spud/dynamo
        command: -inMemory
    

提交回复
热议问题