Download Docker in Action by Jeff Nickoloff PDF

By Jeff Nickoloff

Docker in motion teaches readers easy methods to create, installation, and deal with purposes hosted in Docker boxes. After beginning with a transparent clarification of the Docker version, you are going to how one can package deal purposes in boxes, together with concepts for checking out and dispensing functions. additionally, you will the best way to run courses securely and the way to regulate shared assets. utilizing rigorously designed examples, the ebook teaches you ways to orchestrate packing containers and functions from deploy to elimination. alongside the way in which, you'll become aware of options for utilizing Docker on structures starting from dev-and-test machines to full-scale cloud deployments.

Show description

Read or Download Docker in Action PDF

Best programming books

Beginning Perl (3rd Edition)

It is a booklet for these folks who believed that we didn’t have to examine Perl, and now we all know it's extra ubiquitous than ever. Perl is very versatile and strong, and it isn’t fearful of internet 2. zero or the cloud. initially touted because the duct tape of the web, Perl has considering the fact that advanced right into a multipurpose, multiplatform language current totally in every single place: heavy-duty internet purposes, the cloud, structures management, typical language processing, and fiscal engineering.

Additional info for Docker in Action

Example text

Similarly, programs that have a dependency on some shared component such as a specific version of a programming language library won’t be able to run on computers that either have a different version of that library or lack that library completely. Just like if two people who each use a different payment method want to park in the same garage that accepts only one method, conflict arises when you want to use two programs that require different versions of a library. com> 24 CHAPTER 2 Running software in containers Reserved spaces in this metaphor represent scarce resources.

You need to start the web container first: docker start $WEB_CID docker start $AGENT_CID This makes sense when you consider the mechanics at work. The link mechanism injects IP addresses into dependent containers, and containers that aren’t running don’t have IP addresses. If you tried to start a container that has a dependency on a container that isn’t running, Docker wouldn’t have an IP address to inject. Container linking is covered in chapter 5, but it’s useful to demonstrate this important point in starting containers.

If any is missing but you’ve followed the example thus far, it may have been mistakenly stopped. This isn’t a problem because Docker has a command to restart a container. The next three commands will restart each container using the container name. Choose the appropriate ones to restart the containers that were missing from the list of running containers. docker restart web docker restart mailer docker restart agent Now that all three containers are running, you need to test that the system is operating correctly.

Download PDF sample

Rated 4.84 of 5 – based on 7 votes