Run command in a one-off container in interactive mode and pseudo-TTY

docker run

  • Run a command in a new Docker container.
    More information: <https://docs.docker.com/engine/reference/commandline/run/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

docker run --rm --interactive --tty {{image}} {{command}}

click the source code to copy install docker run on any operating system with command-not-found.com