File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Documentation/teaching/info Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -123,3 +123,44 @@ or simply starting the virtual machine
123
123
.. code-block:: shell
124
124
125
125
~/src/linux/tools/labs$ make boot
126
+
127
+ Using Docker containers
128
+ -----------------------
129
+
130
+ If your setup doesn' t allow the installation of the packages required for the
131
+ laboratory setup, you can build and run a container that has all the setup
132
+ already prepared for the virtual machine environment.
133
+
134
+ In order to run the containerized setup, you need to install the following
135
+ packages:
136
+
137
+ * ``docker ``
138
+ * ``docker-compose ``
139
+
140
+ In order to run the container infrastructure run the following command in the
141
+ ``tools/labs/ `` directory:
142
+
143
+ .. code-block ::
144
+
145
+ make docker-kernel
146
+ ...
147
+ ubuntu@so2:~$
148
+
149
+ The first time you run the command above, it will take a long time, because you
150
+ will have to build the container environment and install the required
151
+ applications.
152
+
153
+ Every time you run the ``make docker-kernel `` command, another shell will
154
+ connect to the container. This will allow you to work with multiple tabs.
155
+
156
+ All the commands that you would use in the regular environment can be used in
157
+ the containerized environment.
158
+
159
+ The linux repository is mounted in the ``/linux `` directory. All changes
160
+ you will make here will also be seen on your local instance.
161
+
162
+ In order to stop the container use the following command:
163
+
164
+ .. code-block ::
165
+
166
+ make stop-docker-kernel
You can’t perform that action at this time.
0 commit comments