You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.adoc
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,11 +278,6 @@ This command starts a container named "db" from the image in your instructor's r
278
278
The two "-e" options define environment variables which are read by the db at startup and allow us to access the database with this user and password.
279
279
Finally, the "-d" option tells docker to start a demon process. "-p" maps container ports to host ports and allows other containers on our host to access it.
280
280
281
-
TODO: do we need to talk more about container linking?
This command starts a container named "wildfly" and links this container to the db container we started earlier.
293
+
This command starts a container named "wildfly" and links this container to the db (--link option) container we started earlier.
294
+
295
+
.More Information about container linking
296
+
[NOTE]
297
+
===============================
298
+
You saw how you can connect to a service running inside a Docker container via a network port. But a port connection is only one way you can interact with services and applications running inside Docker containers.
299
+
Docker also has a linking system that allows you to link multiple containers together and send connection information from one to another. When containers are linked, information about a source container can be sent to a recipient container. This allows the recipient to see selected data describing aspects of the source container.
300
+
See more about container communication on the Docker website link:https://docs.docker.com/userguide/dockerlinks/[Linking Containers Together]
301
+
===============================
302
+
303
+
TODO: do we need to talk more about container linking?
The "-v" flag maps a local directory into the host. This will be the place to put the deployments. Please make sure to use `-v /c/Users/` notation for drive letters on windows.
0 commit comments