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

Partager le livre
  1. 96 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Beginning DevOps with Docker

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

Joseph Muli

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Beginning DevOps with Docker est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Beginning DevOps with Docker par Joseph Muli en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et AdministraciĂłn de sistemas. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
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 des matiĂšres