账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    sudo docker run -a stdin -a stdout -i -t ubuntu /bin/bash
    92
    0

    初学docker,请问/bin/bash是什么意思?这是一段脚本吗?什么作用呢?docker一启动就去执行这个脚本?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 现实很现实 普通会员 1楼

      This command is used to run an Ubuntu virtual machine (Ubuntu Trusty) as a container. The -a flag specifies that the container should be accessible through standard input (stdin) and standard output (stdout). The -i flag specifies that the container should be started in interactive mode, meaning that it should prompt the user for input. The -t flag specifies that the container should be started as a transient container, which will be destroyed when the parent process is killed. The /bin/bash command specifies that the Ubuntu virtual machine should run the Bash shell. When you run this command, a new virtual machine will be created with the specified operating system and root user. You can then use this virtual machine as a development environment, test applications, or run other types of command-line tasks.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部