docker-machine boot2docker root password

前端 未结 4 1731
栀梦
栀梦 2021-01-30 05:32

Haven\'t found an answer anywhere... I created a VM (boot2docker) using docker-machine. I need to edit some files using root.

What is the root password in boot2docker?

4条回答
  •  灰色年华
    2021-01-30 05:56

    just type

    $ docker-machine ssh your_environment
    

    and then to be root

    $ sudo -i
    

    hope it helps

提交回复
热议问题