search

Home  >  Q&A  >  body text

centos7 - docker 密码是怎么设置的?


通过自有云主机接入docker,提示需要输入密码:

[sudo] password for docker

这个密码是怎么设置的?

大家讲道理大家讲道理2775 days ago1082

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-24 09:11:16

    Normally, it is recommended to use docker-machine ssh default 进行登录,不需要输入密码。default as the default machine name.

    In boot2docker, the default username and password are:

    user: docker
    pass: tcuser

    Login method:

    $ ssh docker@localhost -p 2022
    docker@localhost's password: tcuser
                            ##        .
                      ## ## ##       ==
                   ## ## ## ##      ===
               /""""""""""""""""\___/ ===
          ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
               \______ o          __/
                 \    \        __/
                  \____\______/
    

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:11:16

    dock-machine ssh default

    reply
    0
  • Cancelreply