diff options
author | MS <ms@taler.net> | 2023-03-03 20:24:53 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-03-03 20:24:53 +0100 |
commit | b6f6554df1c4f50702fc5af43627aede9ea81bc0 (patch) | |
tree | 23346e1428b1f044f5472830866bd4eeeeb156d7 /libeufin | |
parent | 9fa05d70f144fd6c9d84ab269c651090bf1dd65c (diff) | |
download | docs-b6f6554df1c4f50702fc5af43627aede9ea81bc0.tar.gz docs-b6f6554df1c4f50702fc5af43627aede9ea81bc0.tar.bz2 docs-b6f6554df1c4f50702fc5af43627aede9ea81bc0.zip |
fix Docker instructions
Diffstat (limited to 'libeufin')
-rw-r--r-- | libeufin/local-currencies-tutorial.rst | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/libeufin/local-currencies-tutorial.rst b/libeufin/local-currencies-tutorial.rst index e10a03e4..510c14e8 100644 --- a/libeufin/local-currencies-tutorial.rst +++ b/libeufin/local-currencies-tutorial.rst @@ -12,7 +12,7 @@ on the :ref:`Circuit API <circuit-api>`. More information about libEufin can be found in the :doc:`How-To page </libeufin/nexus-tutorial>`. The following sections show how to install and launch Sandbox -either `from sources <install-from-sources_>`_, or `with Docker <_docker-setup>`_. +either `from sources <install-from-sources_>`_, or `with Docker <docker-setup_>`_. .. _install-from-sources: @@ -84,30 +84,32 @@ host's port 5000. .. code-block:: console - $ docker run -p 5000:5000 -v /libeufin-data:libeufin_data -it nlnet + $ docker run -p 5000:5000 -v libeufin_data:/libeufin-data -it nlnet The previous command uses a default admin password of 'admin' and the NB currency. Do **CHANGE** the admin password in a production scenario. The following command -shows how to start the Sandbox with a custom administrator -password. +shows how to start the Sandbox with custom administrator +password and currency (defaults to EUR otherwise). .. code-block:: console $ export MY_PASSWORD=secret - # Add '-e CURRENCY=$MY_CURRENCY' to also set the currency. - $ docker run -p 5000:5000 -e LIBEUFIN_SANDBOX_ADMIN_PASSWORD=$MY_PASSWORD + $ docker run -e LIBEUFIN_SANDBOX_ADMIN_PASSWORD=$MY_PASSWORD -e CURRENCY=NB -v libeufin_data:/libeufin-data -p 5000:5000 -it nlnet -This setup stores the database in a Docker *volume*. The -following command therefore shows how to delete the database -volume, in order to reset all the data. +This setup stores the database in a Docker *volume*. The following +command therefore resets all the data stored by LibEuFin. .. code-block:: console $ docker volume rm libeufin_data +Note: the removal might fail because the exited containers +are seen as still using the container. Please refer to the Docker +documentation for further information. + .. _after-installation: If Sandbox is running |