无法将-t -i选项传递给Ubuntu上的docker …我错过了什么?

我刚刚开始学习Docker,大多数教程都以docker run -t -i ubuntu /bin/bash开头

我不能使用它,而我可以做docker run ubuntu /bin/bash

我可以错过什么?

 root@njain2:~# docker run -t -i ubuntu /bin/bash docker - version 1.4 Copyright 2003, Ben Jansens <ben@orodu.net> Usage: docker [OPTIONS] Options: -help Show this help. -display DISPLAY The X display to connect to. -border The width of the border to put around the system tray icons. Defaults to 1. -vertical Line up the icons vertically. Defaults to horizontally. -wmaker WindowMaker mode. This makes docker a fixed size (64x64) to appear nicely in in WindowMaker. Note: In this mode, you have a fixed number of icons that docker can hold. -iconsize SIZE The size (width and height) to display icons as in the system tray. Defaults to 24. -color COLOR The background color to use for the tray. Defaults to whatev 

你有错误的docker安装。

你有这个: http : //icculus.org/openbox/2/docker/

你需要这个: https : //www.docker.com/

显然在ubuntu中,这个软件包叫做docker.io而不是docker。