Why kubectl run py --image=python:2.7 does not work? I thought I can use every i . . .

Samir:
why kubectl run py --image=python:2.7 does not work? I thought I can use every image from dockerhub ? Did I understand something wrong?

Poorni:
its working. Try this.
kubectl run py --image=python:2.7 – sleep 3600
k exec py -it – sh

k exec py -it – sh

which python

/usr/local/bin/python

python --version

Python 2.7.18