diff --git a/doc/changes/changes_0.2.0.md b/doc/changes/changes_0.2.0.md index cc03b59e..f9a1538c 100644 --- a/doc/changes/changes_0.2.0.md +++ b/doc/changes/changes_0.2.0.md @@ -16,7 +16,12 @@ Version: 0.2.0 * #163: Fixed version number of VM images etc. * #161: Fixed the bug in the Transformers' Translation notebook. +## Documentation + +* #125: Explained login to docker container + ## Refactoring + * #160: Implemented the PM's recommendations of 2024-01-24. * #120: Passing the secret store object (sb_config) as a parameter to all functions that need it. * #167: Replacing the term "Docker-DB" with "Exasol Docker-DB" in all notebooks and documentation. @@ -24,5 +29,3 @@ Version: 0.2.0 * #170: Renaming the section name "Set up" to "Setup". * #182: Renaming the secret store global variable from "sb_config" to "ai_lab_config". * #169: Renaming the default database schema from "IDA" to "AI_LAB". - -## Documentation diff --git a/doc/user_guide/docker/docker_usage.md b/doc/user_guide/docker/docker_usage.md index 70b014a2..df3f7f65 100644 --- a/doc/user_guide/docker/docker_usage.md +++ b/doc/user_guide/docker/docker_usage.md @@ -142,10 +142,35 @@ port to the same port then you can connect with http://localhost:49494. └─┘┴ ─┴┘┴ ┴ ┴ └─┘ ┴ └─┘└─┘┴└─ └┘└─┘┴ ┴ ┴ └─┘┴└─ ┴ ┴ ┴└─┘└─┘└┴┘└─┘┴└──┴┘ o The default password is "ai-lab". -To update the password as user root run +To update the password, log in to the Docker container as the user root and run /root/jupyterenv/bin/jupyter-lab server password ``` Using an internet browser you then can connect to the Jupyter server running in the Docker container in order to follow the tutorials presented by a set of Jupyter notebooks, see [Connecting to Jupyter Service](../user_guide.md#connecting-to-jupyter-service). For parameter ``: If your daemon machine is identical to the machine your browser is running on then you can replace `` by `localhost` otherwise please use the IP address of the daemon machine. + +The following section explains how to log in to the Docker container to change settings, such as the default password. + +## Login to the Docker container + +To update the password you must log in to the Docker container. + +First, you need to find out the container's ID. The following command shows the list of currently running Docker containers. + +```shell +docker ps +``` + +Here is a sample output + +``` +CONTAINER ID IMAGE COMMAND NAMES +1199447716d4 image:2 "entrypoint" funny_rabbit +``` + +The following command enables you to log in as the user `root` to the specified container: + +```shell +docker exec --user root -it ${CONTAINER_ID} bash +``` diff --git a/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py b/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py index 5bdc8c57..8c2bb2d4 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py +++ b/exasol/ds/sandbox/runtime/ansible/roles/entrypoint/files/entrypoint.py @@ -100,7 +100,7 @@ def exit_on_error(rc): └─┘┴ ─┴┘┴ ┴ ┴ └─┘ ┴ └─┘└─┘┴└─ └┘└─┘┴ ┴ ┴ └─┘┴└─ ┴ ┴ ┴└─┘└─┘└┴┘└─┘┴└──┴┘ o The default password is "{password}". - To update the password as user {user} run + To update the password, log in to the Docker container as the user {user} and run {binary_path} server password """) with open(logfile, "r") as f: