Difference between revisions of "Kubectl exec"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
  
  kubectl exec my_redis_pod -c my_redis_container /sbin/killall5
+
  kubectl exec my-redis-pod -c my-redis-container /sbin/killall5
 
  kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
 
  kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
 
  command terminated with exit code 2
 
  command terminated with exit code 2
  
  kubectl exec my_redis_pod -c my_redis_container /sbin/killall
+
  kubectl exec my-redis-pod -c my-redis-container /sbin/killall
 
  kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
 
  kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
 
  OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/sbin/killall": stat  
 
  OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/sbin/killall": stat  

Revision as of 17:29, 17 July 2021


kubectl exec my-redis-pod -c my-redis-container /sbin/killall5
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
command terminated with exit code 2
kubectl exec my-redis-pod -c my-redis-container /sbin/killall
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/sbin/killall": stat 
/sbin/killall: no such file or directory: unknown
command terminated with exit code 126


Related commands

Activities

See also

Advertising: