Chapter 9. Working with Docker

In this chapter, we will cover the following recipes:

  • Docker usage overview
  • Choosing the right Docker base image
  • Optimizing the Docker image size
  • Versioning Docker images with tags
  • Deploying a Ruby-on-Rails web application in Docker
  • Building and using Golang applications with Docker
  • Networking with Docker
  • Creating more dynamic containers
  • Auto-configuring dynamic containers
  • Better security with unprivileged users
  • Orchestrating with Docker Compose
  • Linting a Dockerfile
  • Deploying a private Docker registry with S3 storage

Introduction

In this chapter, we'll discover the best bits of using Docker in a development environment: from Docker image optimizations to versioning, security, and networking, tips on how to choose the right base Docker image and how to make them dynamic and self-configurable, and how to leverage Docker to cross-compile Go programs or deploy Ruby-on-Rails web applications. Still with a focus on developers and achieving the highest code quality possible, we'll spend some time linting our code, and finally deploy our own Docker Registry to store our own images internally—both on local storage and on AWS S3 for infinite space.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.13.164