Is there any difference in the way the `sleep` command specified below: ``` c . . .

Arvind:
Is there any difference in the way the sleep command specified below:

  containers:
  - command:
    - sleep
    - 1d
    image: nginx:1.17-alpine
    name: p2-pod

and

  containers:
  - command: ["sh", "-c", "sleep 1d"]
    image: nginx:1.17-alpine
    name: p2-pod

Tej_Singh_Rana:
Hello, @Arvind
In the first approach, you’re executing commands with the default shell. I mean whatever specified in the image’s PATH’.
In the second approach, you’re choosing the “sh” shell to execute your command instead of the default one.
Note - Make sure the shell should be available in the packed image.

Sreenivasarao Venepalli:
got it, my bad. Thanks for clarification.

Sreenivasarao Venepalli:
here option “-c” means “command”?

Mohamed Ayman:
Yah, exactly

Sreenivasarao Venepalli:
Thank you

Arvind:
@Tej_Singh_Rana @Sreenivasarao Venepalli for the clarification.