The Fun Way To Build Docker Containers

Photo by Pixabay from Pexels

This is the fun way to learn Docker: Start from a base image and from within, install all necessary dependencies to get your program to work.


http.HandleFunc(“/order”, lp_routes.AddOrder)

The quick: a Golang Dockerfile differs from other languages because placing all code in an arbitrary directory will not allow your app to correctly import other Go packages. To fix this issue, we must place all of our code in the newly created GOPATH —


docker run -dit — name dev golang

docker exec -it dev bash

Software Dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store