docker run -it ubuntu bash

Category: Docker

docker run -it ubuntu bash

Run container interactively with a bash shell

Starts a container you can interact with — you get a command prompt inside it. -i=interactive, -t=terminal.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.