O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Docker Bootcamp

Book Description

Fast, intensive, and effective Docker learning

About This Book

  • Get well-versed with Docker in 7 days
  • Identify and resolve common problems faced by users while working with Docker
  • A fast-paced guide that will focus on all the core Docker functionalities

Who This Book Is For

This book targets developers, IT professionals and DevOps engineers who like to gain intensive, hands-on knowledge and skills with Docker without spending hours and hours in learning. If you have been struggling to find the time to gain proficiency and confidence with Docker containers and everyday Docker tasks, you have come to the right place!

What You Will Learn

  • Use Docker Compose to make multi-container applications easier to launch
  • Launch Docker hosts in various public clouds
  • Deploy and configure a Docker Swarm cluster.
  • Work with third-party plugins to extend core Docker functionality
  • Monitor containers and hosts and explore commands to troubleshoot Docker

In Detail

Docker allows you to create a robust and resilient environment to generate portable, composable, scalable, and stable application containers.

The book starts by installing the core Docker Engine on MacOS, Windows 10 and Linux desktops. We will then define multi-container applications and understand the advantages of using containers locally. Once this is done, we will deploy containers on a single Docker host which is publicly accessible. Furthermore, we will learn how to deploy and configure a Docker Swarm cluster and explore networking and storage third-party plugins to extend the core Docker functionality. Towards the end, the book will demonstrate how to monitor and troubleshoot day-to-day problems in addition to various real world examples of container deployments.

Style and approach

This book is all about fast and intensive learning. That means we don’t waste time in helping readers get started. The content is about filling in with highly-effective examples to build new things, show solving problems in newer and unseen ways, and solve real-world examples.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Docker Bootcamp
    1. Table of Contents
    2. Docker Bootcamp
    3. Credits
    4. About the Authors
    5. About the Reviewer
    6. www.PacktPub.com
      1. eBooks, discount offers, and more
        1. Why subscribe?
    7. Customer Feedback
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Installing Docker Locally
      1. Docker for Mac and Windows
        1. Docker for Mac
          1. Downloading Docker for Mac
          2. Installing Docker for Mac
        2. Docker for Windows
          1. Downloading Docker for Windows
          2. Installing Docker for Windows
        3. Upgrading Docker for Mac and Windows
      2. Docker on Ubuntu 16.04
      3. Testing your installation
      4. Summary
    10. 2. Launching Applications Using Docker
      1. Docker terminology
        1. Docker images
        2. Docker Registry
        3. Docker Hub
      2. Controlling Docker containers
      3. Running a WordPress container
      4. Docker Compose
        1. Why Compose?
        2. Compose files
      5. Docker Build
      6. A quick overview of the Dockerfile's syntax
        1. The comment line
        2. The parser directives
      7. The Dockerfile build instructions
        1. The FROM instruction
        2. The MAINTAINER instruction
        3. The RUN instruction
        4. The COPY instruction
        5. The ADD instruction
        6. The EXPOSE instruction
        7. The ENTRYPOINT instruction
        8. The CMD instruction
      8. Customizing existing images
      9. Sharing your images
      10. Summary
    11. 3. Docker in the Cloud
      1. Docker Machine
      2. The Digital Ocean driver
      3. The Amazon Web Services driver
      4. The Microsoft Azure driver
      5. References
      6. Summary
    12. 4. Docker Swarm
      1. Creating a Swarm manually
      2. Launching a service
      3. Launching a stack
      4. Docker for Amazon Web Services
      5. Docker for Azure
      6. Summary
    13. 5. Docker Plugins
      1. REX-Ray volume plugin
      2. WeaveNetwork Plugin
      3. Summary
    14. 6. Troubleshooting and Monitoring
      1. Troubleshooting containers
        1. The exec command
        2. The ps command
        3. The top command
        4. The stats command
        5. The Docker events command
        6. The logs command
        7. The attach command
      2. Debugging a Dockerfile
      3. Monitoring containers
      4. Summary
    15. 7. Putting It All Together
      1. Workflows
      2. Describing containers
      3. Describing Docker
        1. Distinguishing Docker containers
      4. Virtual Machines versus containers
      5. The Docker use cases
        1. Integrating containers into workflows
        2. Docker for High-Performance Computing (HPC) and Technical Computing (TC) applications
          1. Containers for telecom applications
      6. Summary
    16. Index