issuing commands Azure container instance while staring the container

Chawandi Prabhu 21 Reputation points
2020-09-24T12:34:16.29+00:00

Hello,

I am using the terraform v0.12.25, to send the command to the container while starting using 'commands', but getting the error: no such file or directory"

code snippet.

commands = ["caddy reverse-proxy --from hasura.example.com --to localhost:8080"]

What might be the problem?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
670 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2020-09-25T15:04:20.483+00:00

    @Chawandi Prabhu Firstly, apologies for the delay in responding on this and any inconvenience this issue may have caused.

    I believe that each command should be in its own string, e.g

    commands = ["caddy", "reverse-proxy", etc]  
    

    Can you check and confirm if it is working for you or not?

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    0 comments No comments

0 additional answers

Sort by: Most helpful