Source: www.docker.com

Developing Go Apps With Docker
Go (or Golang) is one of the most loved and wanted programming languages, according to https://survey.stackoverflow.co/2022/#most-loved-dreaded-and-wanted-language-love-dread. Thanks to its smaller binary sizes vs. many other languages, developers often use Go for containerized application development.

We’ll explore using a Go application with an HTTP web server — plus key best practices, optimization tips, and ways to bolster security.

After making those changes, you’ll want to run the same docker build and docker image ls commands.

Enter the following command to start a container from your image: docker run -d -p 8080:8081 --name go-docker-app [YOUR IMAGE NAME]:alpha

Related Articles