JMan
JMan

Reputation: 61

Pass flags to docker in Azure aci

I have a container image (rancher/rancher:latest) that I need to pass "--acme-domain=" flag. How can this be done in Azure Aci?

Upvotes: 3

Views: 1390

Answers (2)

Vidar Kongsli
Vidar Kongsli

Reputation: 836

After a lot of trial and error I was able to do this using the command parameter in the Azure Resource Manager template. The gist of it was that I had to explicitly call the container entry point, e.g. "command":["./scripts/entry","--acme-domain=foo"]. I suppose you could do the same with the --command-line argument in the Azure CLI.

Upvotes: 1

Charles Xu
Charles Xu

Reputation: 31414

You can try to set an environment variable for your tag "--acme-domain=" in Azure ACI.

For more details, see Set environment variables in Azure ACI.

Upvotes: 0

Related Questions