docker run

  • -d: running images in detached mode (in the background), and then you can use docker attach <image-id> command to get the output back.
  • -p: map port
  • -v: map volume
  • -i, --interactive: keep STDIN(Standard Input) open even if not attached
  • -t, --tty: allocate a pseudo-TTY(伪终端)