mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-01 22:16:54 +03:00
fixed code-block formatting
This commit is contained in:
parent
238b8d16b7
commit
b45095591c
@ -97,6 +97,7 @@ and generate the password file (the default login is ``glances``, add the ``--us
|
||||
which will prompt you to answer the following questions:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
Define the Glances server password (glances username):
|
||||
Password (confirm):
|
||||
Do you want to save the password? [Yes/No]: Yes
|
||||
@ -104,17 +105,20 @@ which will prompt you to answer the following questions:
|
||||
after which you will need to kill the process by entering ``CTRL+C`` (potentially twice), before leaving the container:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
^C^C
|
||||
exit
|
||||
|
||||
You will then need to copy the password file to your host machine:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
docker cp glances_docker:/root/.config/glances/glances.pwd ./secrets/glances_password
|
||||
|
||||
and make it visible to your container by adding it to ``docker-compose.yml`` as a ``secret``:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
Loading…
Reference in New Issue
Block a user