QuestionQ32Verified/703.2 Basic Kubernetes OperationsCopy linkReport a problemAsk AstroTutorSave questionWhich command opens an interactive shell inside the already running webserver container?Akubectl run webserver /bin/shBkubectl login webserverCkubectl create --process /bin/sh webserverDkubectl exec -ti webserver -- /bin/shEkubectl command webserver -- /bin/shShow AnswerAnswerExplanationkubectl 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion