QuestionQ32

Verified703.2 Basic Kubernetes Operations

Which command opens an interactive shell inside the already running webserver container?

Explanation

kubectl exec executes a command in an existing container. Using -ti provides an interactive terminal for /bin/sh, so it opens a shell in the running webserver container.

Community Discussion

No comments yet. Be the first to start the discussion!