I'd like to learn the Dockerfile from a very simple start, so here's my Dockfile:
FROM ubuntu
ENTRYPOINT /bin/bash
however, after building the image and run the container, I find that I can't run the bash commands. For example, if I type:
# clear
The container seems to get stuck running in an infinite loop. So why does that happen? How can I fix it?
docker run -it --rm --entrypoint /bin/bash ubuntu -c "clear"seems to work...