Go (Golang) and Docker: Application Containerization
300 pages
English
PDF
4.5

Go (Golang) and Docker: Application Containerization

Go (Golang) and Docker: Application Containerization

Author:

Year:

Summary:

The book "Go (Golang) and Docker: Application Containerization" is a practical guide for developers who want to master the modern approach to creating, packaging, and deploying software. The combination of the fast and reliable Go language with the flexibility of Docker allows you to build scalable, easily portable, and secure applications.



What is this book about?

  • Basics of the Go language: syntax, goroutines, channels, working with HTTP and databases.
  • Principles of containerization: what Docker is, images, containers, Dockerfile, Docker Compose.
  • Step-by-step creation of a full-fledged web application in Go followed by packaging into a Docker image.
  • Image optimization: multi-stage builds, size reduction, layer caching.
  • Working with environment variables, volume mounting, logging, and monitoring in containers.
  • Orchestration: deployment in Kubernetes or Docker Swarm, CI/CD pipelines (GitLab CI, GitHub Actions).
  • Security: best practices, vulnerability scanning, resource constraints.


Who is this book for?

  • Beginner Go developers wanting to learn containerization.
  • DevOps engineers who want to deepen their understanding of packaging Go applications.
  • Fullstack developers looking to automate the deployment of their projects.


What will you learn?

  • How to write an efficient Go application considering the container environment.
  • How to create a production-ready Dockerfile for a Go project.
  • How to set up automatic builds and deployment via CI/CD.
  • How to work with multiple services (database, cache, queue) using Docker Compose.
  • How to scale an application and manage its state.


The book contains numerous practical examples, ready-to-use code snippets, and step-by-step instructions. All examples have been tested on current versions of Go 1.21+ and Docker 24+. After reading, you will be able to independently containerize any Go application and run it in the cloud or on your own server.



Perfect for programmers who value speed, simplicity, and reliability — both in the Go language and in containerization tools.

Recommendations