
If you want to learn more about creating your own base images, see creating base images section of the guide. All of our consequent commands would build on top of that “base” image.

When we have used that FROM command, we told Docker to include in our image all the functionality from the golang:1.16-alpine image. Or functional composition in functional programming. Same way you would think about class inheritance in object oriented programming Our own base image, we’ll use the official Go image that already has all the toolsĪnd packages to compile and run a Go application. # syntax=docker/dockerfile:1 FROM golang:1.16-alpineĭocker images can be inherited from other images. Please feel free to clone or fork it.įor our present study, we clone it to our local machine: The source code for the application is in the /olliefr/docker-gs-ping Thus, it somewhat mimics enough basic properties of a REST microservice to be

Follow the instructions to download and install Docker. You might want to download and install Go first. To complete this tutorial, you need the following: To run an application – the code or binary, runtime, dependencies, and any other

Now that we have a good overview of containers and the Docker platform, let’s

