samarth urs:
what is the diff between below two :
spec:
containers:
- image: busybox:1.31
name: busybox
command: ["sh", "-c", "sleep 1d"]
spec:
containers:
- image: busybox:1.31
name: busybox
command: ["sleep", "1d"]
samarth urs:
what is the diff between below two :
spec:
containers:
- image: busybox:1.31
name: busybox
command: ["sh", "-c", "sleep 1d"]
spec:
containers:
- image: busybox:1.31
name: busybox
command: ["sleep", "1d"]
Narendra Singh:
@samarth urs In the 1st one, we are specifying the shell name to use. 2nd one will choose the default shell. Both should work.
samarth urs:
Ty