aviral sanjay
aviral sanjay

Reputation: 983

How to enter docker containers deployed on Google cluster?

I have deployed my application via docker on Google Kubernetes cluster. I am facing an application error due to which I want to enter inside the container and check a few things. At local, all I had to do was run sudo docker ps and then exec -it into the container.

How can I do that when containers are deployed on a Kubernetes cluster?

Upvotes: 0

Views: 50

Answers (1)

Edmhs
Edmhs

Reputation: 3731

You need to use kubectl

kubectl get pods
kubectl exec -it pod-container-name -- /bin/bash

Upvotes: 1

Related Questions