question

ChawandiPrabhu-9989 avatar image
0 Votes"
ChawandiPrabhu-9989 asked prmanhas-MSFT commented

issuing commands Azure container instance while staring the container

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ChawandiPrabhu-9989 Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

Thanks.

0 Votes 0 ·

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@ChawandiPrabhu-9989 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



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.