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?
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?
If you only have a single docker machine, you simply do:
If you have multiple machines, you need to find your "machine name" first:
From the above, you can see that default is the name of your machine and you can ssh as follows:
When you're in, it's a simple case of sudo-ing to root
Edited: Also, as @MediaVince mentioned you can use the following credentials:
user: docker
pwd: tcuser
Login via ssh as
docker
user:Then you can change on
root
user, just runsudo su root
Ok the key was not to do "su root" but rather "su sudo". It then doesn't ask for root password.
just type
and then to be root
hope it helps