Beginning DevOps with Docker
eBook - ePub

Beginning DevOps with Docker

Automate the deployment of your environment with the power of the Docker toolchain

Joseph Muli

Share book
  1. 96 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Beginning DevOps with Docker

Automate the deployment of your environment with the power of the Docker toolchain

Joseph Muli

Book details
Book preview
Table of contents
Citations

About This Book

It can be tough to roll out a pre-configured environment if you don't know what you're doing. We'll show you how to streamline your service options with Docker, so that you can scale in an agile, responsive manner. About This Book• Learn how to structure your own Docker containers• Create and manage multiple configuration images• Understand how to scale and deploy bespoke environmentsWho This Book Is ForThis book is ideal for developers, system architects and site reliability engineers (SREs) who wish to adopt a Docker-based workflow for consistency, speed and isolation of system resources within their applications. You'll need to be comfortable working with the command line.What You Will Learn• Learn to design and build containers for different kinds of applications• Create a testing environment to identify issues that may cause production deployments to fail• Discover how you can correctly structure and manage a multi-tier environment• Run, debug, and experiment with example applications in Docker containersIn DetailMaking sure that your application runs across different systems as intended is quickly becoming a standard development requirement. With Docker, you can ensure that what you build will behave the way you expect it to, regardless of where it's deployed. By guiding you through Docker from start to finish (from installation, to the Docker Registry, all the way through to working with Docker Swarms), we'll equip you with the skills you need to migrate your workflow to Docker with complete confidence.Style and approachThis is a fast-paced, practical hands-on book aimed at experienced developers and system architects. As you progress you'll find helpful tips and tricks, as well as useful self-assessment material, exercises and activities to help benchmark your progress and reinforce what you've learned. The activities are devised to simulate the real-world conditions in order to equip you with the necessary skills to accelerate software deployment while still retaining security, portability and saving on costs.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Beginning DevOps with Docker an online PDF/ePUB?
Yes, you can access Beginning DevOps with Docker by Joseph Muli in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Administración de sistemas. We have over one million books available in our catalogue for you to explore.

Information

Year
2018
ISBN
9781789539578

Beginning DevOps with Docker


Table of Contents

Beginning DevOps with Docker
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Hardware
Software
Who This Book is for
Conventions
Reader Feedback
Customer Support
Downloading the Example Code
Installation
Errata
Piracy
Questions
1. Images and Containers
Lesson Objectives
Virtualization versus Containerization
How Docker Improves a DevOps Workflow
Recap of the Docker Environment
Basic Docker Terminal Commands
Activity 1 — Utilizing the docker pull Command
Activity 2 — Analyzing the Docker CLI
Dockerfile Syntax
Writing Dockerfiles for Python and JavaScript examples
Python
JavaScript
Activity 3 — Building the Dockerfile
Building Images
docker build
Removing Docker Images
Activity 4 — Utilizing the Docker Image
Running Containers From Images
Python
Versioning Images and Docker Hub
Deploying a Docker Image to Docker Hub
Summary
2. Application Container Management
Lesson Objectives
The docker-compose Tool
Installing docker-compose
Overview of a Multi-Container Application Setup
The Frontend
The Backend
The Database
Using docker-compose
docker-compose first run
Activity 1 — Running WordPress Using docker-compose
The docker-compose file: docker-compose.yml
The docker-compose CLI
Activity 2 — Analyzing the docker- compose CLI
Managing Multiple Containers and Distributed Application Bundles
Improve a Docker Workflow
The Django Compose File Broken Down
Endure Data Using Volumes
Ports
Activity 3 — Running the docker-compose File
Networking with docker-compose
Run the WordPress Containers
Summary
3. Orchestration and Delivery
Lesson Objectives
Orchestration
An Overview of Docker Swarm
Using Docker Engine to Create a Swarm
Creating Docker Machines
Listing Created Machines
Worker Machine Creation
Initializing our Swarm
Connecting to a Machine
Initializing Swarm Mode
Adding Workers to our Swarm
Viewing a Cluster's Status
Activity 1 — Adding Nodes to a Cluster
Managing Services and Applications in a Swarm
Creating a Service
Listing Services
Service Status
How Do We Know Our Site is Running?
Activity 2 — Running Services on a Swarm
Scaling Services Up and Down
Scaling Our Database Service
How Does Swarm Know Where to Schedule a Service?
How Does Swarm Load Balance Requests between Replicas?
Activity 3 — Scaling Services on a Swarm
Summary
Index

Beginning DevOps with Docker

Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Acquisition Editor: Koushik Sen
Content Development Editor: Darren Patel
Production Coordinators: Vishal Pawar, Samita Warang
First published: May 2018
Production reference: 1310518
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78953-240-1
www.packtpub.com
Beginning DevOps with Docker
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance...

Table of contents