kubectl container logs code example
Example 1: kubectl get logs of deployment
kubectl logs -f deployment/<name-of-deployment>
or
kubectl logs deployment/<name-of-deployment>
Example 2: how to login to docker inside kubernetes cluster
kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>