X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/731c1c3acd4facc435f497e45e44347d79aff6ad..8e2e4ce1b59168c116acdce414515ee96d3769c0:/docs/source/Tutorial_Algorithms.rst diff --git a/docs/source/Tutorial_Algorithms.rst b/docs/source/Tutorial_Algorithms.rst index af93ee55a9..0166e8ed72 100644 --- a/docs/source/Tutorial_Algorithms.rst +++ b/docs/source/Tutorial_Algorithms.rst @@ -390,6 +390,19 @@ All needed dependencies are already installed in this container optional in this tutorial, it is not installed to reduce the image size. +The docker does not run as root, so that the files can easily be exchanged between within the container and the outer world. +If you need to run a command as root within the container, simply type the following in another terminal to join the same container as root: + +.. code-block:: console + + $ docker container ls + # This lists all containers running on your machine. For example: + # CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES + # 7e921b1b18a7 simgrid/stable "bash" 7 minutes ago Up 7 minutes adoring_shamir + + $ docker exec --user 0:0 -it {container_name} bash + # In the previous example, container_name was "adoring_shamir" + The code template is available under ``/source/simgrid-template-s4u.git`` in the image. You should copy it to your working directory and recompile it when you first log in: