Adding exec command
This commit is contained in:
parent
80e4bc007f
commit
d89545ba7e
|
@ -0,0 +1,34 @@
|
||||||
|
.. _exec_command:
|
||||||
|
|
||||||
|
run
|
||||||
|
===
|
||||||
|
|
||||||
|
To command ``exec`` has some options:
|
||||||
|
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
rfswift exec --help
|
||||||
|
[...]
|
||||||
|
Usage:
|
||||||
|
rfswift exec [flags]
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-e, --command string command to exec (required!)
|
||||||
|
-c, --container string container to run
|
||||||
|
-h, --help help for exec
|
||||||
|
-i, --install string install from function script (e.g: 'sdrpp_soft_install')
|
||||||
|
|
||||||
|
|
||||||
|
To get the container ID of a previous session, you can issue the command ``last`` documented :ref:`here<last_containers>`.
|
||||||
|
|
||||||
|
Once you have the desired container ID, you can execute a command inside a running or paused container as follows:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
rfswift exec -c 83471263e5e5f9951d83ec27dec37ff5273f92411830b3a08d4053c05b773fe7 -e urh
|
||||||
|
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
This command will likely fail if you issue it against a Docker container associated to a build process.
|
|
@ -90,6 +90,7 @@ You feel inspired and want to share you cakes, or you have an issues to report o
|
||||||
:hidden:
|
:hidden:
|
||||||
:caption: RF Swift's commands
|
:caption: RF Swift's commands
|
||||||
|
|
||||||
|
commands/run_command.rst
|
||||||
commands/run_command.rst
|
commands/run_command.rst
|
||||||
commands/last_containers.rst
|
commands/last_containers.rst
|
||||||
commands/hot_install.rst
|
commands/hot_install.rst
|
||||||
|
|
Loading…
Reference in New Issue