What will you learn in this module?
In this guide, you will learn how to create a containerized Go application using Docker.
Why Go? Go is an open-source programming language that lets you build simple, reliable, and efficient software. Go is undeniably a major player in the modern Cloud ecosystem; both Docker and Kubernetes are written in Go.
We’d like to thank Oliver Frolovs for his contribution to the Golang get started guide.
In this guide, you’ll learn how to:
- Create a new
Dockerfilewhich contains instructions required to build a Docker image for a simple Go program
- Run the newly built image as a container
- Set up a local development environment to connect a database to the container
- Use Docker Compose to run your Go application and other services it requires
- Configure a CI/CD pipeline for your application using GitHub Actions
You can containerize your own Go application using the examples and resources provided after you complete the Go getting started modules.
Let’s get started!