Join Arthur Ulfeldt for an in-depth discussion in this video Link containers, part of Learning Docker.
- Now let's talk about getting data between containers.…The first approach is to just go out to the host…and then back to the other container.…And then that the other container can go out to the host…and back to the first container.…So you can connect two containers together…by just exposing a port on each of them…and then having each of them connect to the host on that…port which then gets forward into the appropriate container.…Let's take a look at what that looks like.…I'm gonna go ahead and start up a Docker container…to receive some network traffic.…
Docker run --rm -ti ubuntu:14.04 and bash.…Now, I'm gonna go ahead, head on back here…and insert a -p for port.…I wanna forward port 1234 on my laptop to port 1234…inside this container.…So that means traffic arriving at my laptop on 1234…will go into this container.…
Start it up, inside I'm gonna run trusty old net cat,…nc -lp listen port 1234, the same one I just forwarded in…and start it listening.…Okay, this guy's ready to receive some traffic.…Now let's send some traffic to it from another Docker…
- Installing Docker on Mac, Windows, and Linux
- Understanding the Docker flow
- Running processes in containers
- Managing, networking, and linking containers
- Working with Docker images, volumes, and registries
- Building Dockerfiles
- Managing networking and namespaces with Docker
- Building entire systems with Docker
Skill Level Beginner
Docker Essential Training: 2 Orchestrationwith David Davis1h 4m Intermediate
DevOps Foundations: Containerswith David Linthicum1h 16m Appropriate for all
What is Docker?2m 51s
1. Installing Docker
2. Using Docker
3. Building Docker Images
4. Under the Hood
5. Orchestration: Building Systems with Docker
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.