Skip to content

Commit 3cd8f65

Browse files
committed
Added Linking Information
1 parent 00ba02f commit 3cd8f65

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

readme.adoc

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,6 @@ This command starts a container named "db" from the image in your instructor's r
278278
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.
279279
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.
280280

281-
TODO: do we need to talk more about container linking?
282-
http://blog.arungupta.me/docker-mysql-persistence/
283-
http://blog.arungupta.me/docker-container-linking-across-multiple-hosts-techtip69/
284-
285-
286281
This should have worked. To double check if it did, you can see the server logs
287282
[source, text]
288283
----
@@ -295,7 +290,21 @@ After the database server is up and running we now need the WildFly.
295290
----
296291
docker run -d --name wildfly -p 8080:8080 --link db:db -v /Users/youruser/tmp/deployments:/opt/jboss/wildfly/standalone/deployments/:rw <INSTRUCTOR_IP>:5000/wildfly
297292
----
298-
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?
304+
http://blog.arungupta.me/docker-mysql-persistence/
305+
http://blog.arungupta.me/docker-container-linking-across-multiple-hosts-techtip69/
306+
307+
299308
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.
300309
The other options are known to you already.
301310
Check the logs if the server is started.

0 commit comments

Comments
 (0)