Quick Ubuntu for testing
I needed to run a quick test on a virgin Linux system.
Rather than spinning up a virtual machine, I just ran a single Docker command, and was up and running.
docker run -it --entrypoint "/bin/bash" ubuntu:latest
That's it. Really, it's that simple.
From the Docker docs:
An ENTRYPOINT allows you to configure a container that will run as an executable.
In the above example, the entrypoint is /bin/bash, so we'll get the Bash prompt, and be able to run commands as needed.
Reference
Docker Docs - Dockerfile reference https://docs.docker.com/engine/reference/builder/#entrypoint