Building your first Go Docker image

A Docker image is the filesystem and configuration of our application and is further used to create Docker containers. There are two ways by which a Docker image can be created, which is either from scratch or from a parent image. In this recipe, we will learn how to create a Docker image from a parent image. This means an image created basically refers to the contents of its parent and subsequent declarations in the Dockerfile modify the parent image.

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.