gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 18:45:39 25 4
gpt4 key购买 nike

我刚刚开始学习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。

关于docker - 无法将-t -i选项传递给ubuntu上的docker ...我错过了什么吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25917836/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com