1

I have a docker image that I want to run in service fabric with parameters (such as running command 'docker run -ParameterName parameterValue').

I can pass parameters to docker run in Commands section of ServiceManifest.xml:

<ContainerHost>
    <ImageName>...</ImageName>
    <Commands>-ParameterName parameterValue</Commands>
</ContainerHost>

Is there a way to fill Commands section of ServiceManifest in ApplicationManifest.xml file? I know that there is an ImageOverrides section in ApplicationManifest to override the ImageName of ServiceManifest, is there a similiar section to override the Commands section? I want to be able to specify the parameterValue in ApplicationParameters file.

1 Answers1

0

If your image is linux based. you can change the file by using 'sed' command

You can create a shell script file and put it in the docker run command.

Environment variable substitution in sed

fuzes
  • 1,777
  • 4
  • 20
  • 40