Created 11-22-2016 07:15 PM
I have changed the root password for docker sandbox which I have forgotten now. How can I reset it?
Created 11-22-2016 10:22 PM
sudo docker exec -i <container-id-or-name> passwd
Created 11-22-2016 07:23 PM
Follow the instructions in this article:
https://linuxconfig.org/recover-reset-forgotten-linux-root-password
When you get to the step with the mount instruction use
mount -rw -o remount /-
Created 11-22-2016 10:22 PM
sudo docker exec -i <container-id-or-name> passwd
Created on 03-15-2017 08:04 AM - edited 08-19-2019 03:50 AM
Switch to virtualbox/vmware console :
and logon to this console with username/password as root/hadoop (default)
on root prompt type
docker exec -i sandbox passwd and type the new password. as shown in this picture
Now go to browser and access the shell with new password
or do ssh root@localhost -p 2222 and keyin new password set in above screen.
you can use putty from windows machine and run any hdfs command.
Created 02-01-2018 06:14 PM
I have tried this command in 2.6 version unsuccessfully but successfully with "sandbox-hdp" container.
docker exec -i sandbox-hdp passwd
After introducing password twice you have to finish with ^C.
Best regards
Emilio