Edith Puclla:
Hello, what means “-c” in this command?
- args:
- bin/sh
- -c
- ls; sleep 3600
I am confusing with this “-c” : “kubectl exec -it multi -c main-container – sh cat /var/log/main.txt”
Edith Puclla:
Hello, what means “-c” in this command?
- args:
- bin/sh
- -c
- ls; sleep 3600
I am confusing with this “-c” : “kubectl exec -it multi -c main-container – sh cat /var/log/main.txt”
Tanumoy Ghosh:
/bin/sh -c
–> It dictates that a command would be run in the shell
exec it <podname> -c
<container> –> It dictates container
It might run without -c
as well
Edith Puclla:
Thank you!