docker run -i -t --rm

tty: teletype, teletypewriter

pseudo-tty 伪终端

-t assigns a pseudo-tty or terminal inside our new container
-i make an interactive connection

--rm
在Docker设计中, 当离开container时, 默认会保存当下container的file system状态. 如果只是想你可以使用 automatically clean up the container and remove the file system when the container exits --rm. 此参数与 -d 不兼容. 适用于如果短暂的使用具交互性的容器下, 例如docker run -i -t

原文地址:https://www.cnblogs.com/jHenry/p/4248048.html