From 04b0c56c2ae06645fd649cc00bf353f17e9007b9 Mon Sep 17 00:00:00 2001 From: Parth Dode Date: Wed, 6 May 2020 16:52:33 +0530 Subject: Added the Manually setup the docker password section. This is my first commit Change-Id: Ibafdb5c94424e3a9ee1fac285a14b1d72679d035 Signed-off-by: Parth Dode --- docs/part-1/server-part.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/part-1/server-part.md b/docs/part-1/server-part.md index 97aae69..7d3cfd5 100644 --- a/docs/part-1/server-part.md +++ b/docs/part-1/server-part.md @@ -174,8 +174,7 @@ For more detailed `xds-server` configuration information including settings, see If you are using path-mapping sharing type for your projects, you need to have the same user ID and group ID inside and outside Docker. -By default, user and group names inside Docker are `devel` and `1664`, -respectively. +By default, user, password and group names inside Docker are `devel`, `devel` and `1664`, respectively. **NOTE:** @@ -207,7 +206,18 @@ docker exec ${CONTAINER_NAME} bash -c "systemctl restart autologin" # Restart xds-server as a service. The ssh port 2222 might depend on your container ID. ssh -p 2222 devel@localhost -- "systemctl --user restart xds-server" ``` +### Manually setup the Docker Password +If you forget the password set for the container , it might become a problem to ssh into the container and check on the files created. +For such a time , you need to set up a new password for the container. Use the following commands to do just that: + +```bash +# This will let you access the bash shell inside the container as root +docker exec -it ${CONTAINER_NAME} /bin/bash + +# Change the password of the user (root or devel) +passwd ${USER} +``` ### Check if xds-server is Running (open XDS webapp) When the container starts up, `xds-server` automatically starts as a -- cgit 1.2.3-korg