I am running the command
docker run php
and the terminal shows 'Interactive shell' and the docker image exits automatically. Here is the docker status
docker ps -a
"docker-php-entrypoi…" Less than a second ago Exited (0) 3 seconds ago
Please try the following:
docker run -it --rm php bash
docker ps -a , I am able to see the container running. However, why does the container fail to start when I execute docker run php