Book Image

Beginning Docker [Video]

By : Donald Simpson, Jeff Lindsay
Book Image

Beginning Docker [Video]

By: Donald Simpson, Jeff Lindsay

Overview of this book

<p>One of the major challenges while creating an application is adapting your application to run smoothly on all of the plethora of operating systems available. Docker is an extremely efficient technology that allows you to wrap all your code along with its supporting files into a single bundle; it also guarantees that your application will behave in the same way on any host powered by Docker. You can also easily reuse existing Docker containers or create and publish your own. Unlike Virtual Machines, Docker containers are lightweight and more efficient.</p> <p>Beginning Docker starts with the fundamentals of Docker—explaining how it works, how to set it up, and how to get started on leveraging the benefits of this technology. The course goes on to cover more advanced features and shows you how to create and share your own Docker images.</p> <p>You will learn how to install Docker on your own machine, then how to manage it effectively, and then progress to creating and publishing your very own application. You will then learn a bit more about Docker Containers; built-in features and commands such as volumes, mounts, ports, and linking and constraining containers; before diving into running a web application.</p> <p>Docker has functionality such as the Docker web API to handle complex automation processes which will be explained in detail. You will also learn how to use the Docker Hub&nbsp;to fetch and share containers, before running through the creation of your own&nbsp;Docker powered mini-Heroku</p> <p>Beginning Docker covers everything required to get you up and running with Docker, with detailed real-world examples and helpful tips to make sure you get the most from it.</p> <h1>Style and Approach</h1> <p>An easy-to-follow and structured video tutorial with practical examples of Docker to help you get to grips with each and every aspect.</p> <p>The course will take you on a journey from the basics to the advanced application of Docker containers, and includes several real-world scenarios to learn from.</p>
Table of Contents (6 chapters)
Chapter 4
More Docker Features
Content Locked
Section 5
Linking Containers
Similar to how we can"share" data volumes across containers, we can also "share" ports across containers so that they can communicate with each other. - If we want to restrict which containers can connect to us, we can use a Docker feature called Linking. - See how Linking will take any exposed ports of one container and make them directly accessible to another. It will also populate a number of environment variables for that container to discover how to connect to it. - Examine the working environment and demonstrate how we can connect to the linked container