1
1
How is Murilo using :program: `docker `
2
2
=====================================
3
3
4
+ .. important ::
5
+
6
+ This section is a working draft.
7
+
4
8
Installation
5
9
------------
6
10
.. note ::
@@ -101,12 +105,13 @@ Docker compose
101
105
++++++++++++++
102
106
103
107
If your host does not have :program: `ROS2 ` you can also have multiple containers communicating with each
104
- other without any direct involvement of the host. For instance with the following compose file.
108
+ other without any direct involvement of the host. For instance with the following compose file named
109
+ :file: `compose.yml ` below.
105
110
106
111
.. literalinclude :: scripts/composer/simple_example/compose.yml
107
112
:language: yaml
108
113
109
- That we can execute with the following command
114
+ In the folder where :file: ` compose.yml ` exists, we do
110
115
111
116
.. code-block ::
112
117
@@ -118,6 +123,9 @@ That we can execute with the following command
118
123
around for docker compose to do something similar to ``--rm `` as in :program: `docker `. In tutorials it
119
124
is convenient to always start frash but this will cause data to be lost in the container when it's closed.
120
125
126
+ This will show the output of the two images communicating over :program: `ROS2 `. Notice that there is no input
127
+ from the host and no complicated network setup involved.
128
+
121
129
You can stop the process with ``CTRL+C ``. Note that we are using ``stop_signal: SIGINT `` in the docker compose
122
130
file because otherwise it will send ``SIGTERM ``. In this toy example this is not an issue, but this is a major
123
131
issue for nodes that control real resources. This can mean that a robot will not be safely disconnected before
@@ -126,6 +134,11 @@ to give the container enough time to close safely. Depending on your resource yo
126
134
value so that it is not escalated into a ``SIGTERM `` or ``SIGKILL `` before your container had enough time to
127
135
sort out its shutdown procedure.
128
136
137
+ Docker container in a realtime kernel
138
+ -------------------------------------
139
+
140
+ TODO
141
+
129
142
Common mistakes
130
143
---------------
131
144
0 commit comments