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

Compartir libro
  1. 96 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Beginning DevOps with Docker

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

Joseph Muli

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Beginning DevOps with Docker un PDF/ePUB en línea?
Sí, puedes acceder a Beginning DevOps with Docker de Joseph Muli en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Administración de sistemas. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice