QuestionQ202Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionHow can you execute a command in a running container within a Pod?Akubectl exec --Bdocker execCkubectl run --Dkubectl attach -iShow AnswerAnswerExplanationkubectl exec runs a command in a container that is already running in a Kubernetes Pod. The -- separates the Pod and kubectl options from the command to execute.Learn morekubectl exec referenceShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion