If you are just looking to run an image with docker and be able to interact with the shell then, what you need to do is:
docker run –rm -it –entrypoint /bin/bash <image>
Following is an example:
docker run –rm -it –entrypoint /bin/bash ubuntu:22.04
root@04cb2dfd61cc:/# ls
bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var