Run a container from the ubuntu image and start an interactive shell session inside it.#

Question#

Run a container from the ubuntu image and start an interactive shell session inside it. You can run commands like ls, pwd, etc.

Solution#

docker run -it ubuntu bash