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

Condividi libro
  1. 96 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Beginning DevOps with Docker

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

Joseph Muli

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul 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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Beginning DevOps with Docker è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Beginning DevOps with Docker di Joseph Muli in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Administración de sistemas. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
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...

Indice dei contenuti