通常情況下,推薦使用 docker-machine ssh default
進行登錄,不需要輸入密碼。default
是默認的 machine 名字。
在 boot2docker 中,默認的用戶名和密碼是:
user: dockerpass: tcuser
登錄方法:
$ ssh docker@localhost -p 2022 docker@localhost's password: tcuser ## . ## ## ## == ## ## ## ## === /""""""""""""""""\___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\______/