Skip to content

Commit 0724a8e

Browse files
committed
add rephrasing, comments for containerization
1 parent 6b2282d commit 0724a8e

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

chapter_09_docker.asciidoc

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,37 @@ Because containerization is a kind of even-more-virtual virtualization.
153153
Conceptually, "regular" virtualization works at the hardware level,
154154
it gives you multiple virtual machines (VMs)
155155
that pretend to be physical computers, on a single real machine.
156-
So you can run multiple operating systems inside separate VMs
156+
So you can run multiple operating systems using separate VMs
157157
on the same physical box.
158-
159-
Containers work at the operating system level.
160-
It gives you multiple virtual operating systems that
158+
// CSANAD: to me, the wording sounded like it meant the multiple OS-s
159+
// ran inside (each) VM. Maybe "using separate VMs" is a little
160+
// more clear.
161+
162+
Containers work at the operating system level: packing the source code and its
163+
dependencies together, often with the entire environment required to run the
164+
application, while using the host system's kernel. This is what we call
165+
containers.
166+
// CSANAD: I felt like some explanation like this on the term "container"
167+
// was missing. Probably a simple hand-drawn image visualizing the
168+
// differences between virtualization and containerization could be also
169+
// helpful.
170+
171+
They can give you multiple virtual operating systems that
161172
all run on a single real OS.
162-
So you can run multiple programs inside separate virtual operating systems,
173+
So you can run programs inside separate virtual environments,
163174
using a single real host operating system and kernel.
164-
165-
The upshot of this is that containers are much "cheaper".
175+
// CSANAD: rephrased it a little, since containers aren't necessarily
176+
// separate operating systems. Sometimes they are just a few
177+
// processes running in isolation. This, in my opinion aligns better
178+
// with the way Docker worded it.
179+
For further clarification, have a look at
180+
https://www.docker.com/resources/what-container/[Docker's Resources on
181+
containers]
182+
183+
The upshot of this is that containers are much "cheaper" in terms of
184+
system resources.
185+
// CSANAD: probably nobody would believe you were talking about
186+
// money, but I think it's more specific this way.
166187
You can start one up in milliseconds,
167188
and you can run hundreds on the same machine.
168189

@@ -191,14 +212,22 @@ and most of the rest of the deployment process is taken care of by someone else.
191212

192213
How will containerizing our software help with the danger areas?
193214

194-
* Containers are like a little virtual server,
215+
* Containers can be like little virtual servers and this is how
216+
we will use them,
195217
so they will force us to address many of the problems
196218
like dependency management and configuration.
197219

198220
* We can use the containers to package up as much
199221
of the functionality of our application as possible,
200222
which in turn will minimise the amount of configuration
201223
we need to do to our actual servers.
224+
// CSANAD: I'm not sure about this point. Can you be a bit more
225+
// specific or maybe give a few examples?
226+
// I feel like the first point is about having the dependencies along
227+
// with the source code and setting open ports, users set up for running
228+
// the program, DB-related settings, etc. This one is a little vague,
229+
// I'm not sure what functionalities would save additional configuration
230+
// of the servers.
202231

203232
* We can test our containers work by running our functional tests
204233
against them.

0 commit comments

Comments
 (0)