Docker is a container technology for packaging and shipping applications. Other advantages include portability, since a container will run the same way regardless of the host OS. It provides a lot of the advantages of a virtual machine, but in a more lightweight container. It's possible to limit the resource consumption of individual containers and sandbox your environment. It can be extremely useful to have a common environment for your applications locally and when you ship your code to production. Docker is written in Go and is open source, so it's simple to take advantage of the client and libraries. This recipe will set up a Docker container for a basic Go application, store some version information about the container, and demonstrate hitting a handler from a Docker endpoint.
Getting ready
Configure your environment according to these steps:
- Refer to theTechnical requirements section in this...