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

 手机用户2502937013 发布于 2022-12-20 17:33

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

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

user2105103.. 6

您安装了错误的docker.

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

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

[编辑]显然在ubuntu中,这个包被称为docker.io而不是docker.

1 个回答
  • 您安装了错误的docker.

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

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

    [编辑]显然在ubuntu中,这个包被称为docker.io而不是docker.

    2022-12-20 17:36 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有