O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pulling a Docker image on an AWS EC2 instance from Docker Hub

To run a Docker container, we need to have a Docker image, which we can either build from a DockerFile or can pull from any of the public or private Docker registries, such as Docker Hub, Quay, Google Container Registry, AWS Container Registry, and so on. 

As we have already learned how to create a Docker image from a DockerFile and push it to Docker Hub in Chapter 9, Working with Go and Docker, we will not build an image again in this recipe. Instead, we will be pulling the pre-built image from Docker Hub on an EC2 instance.

See the Building your first Go Docker image recipe in Chapter 9, Working with Go and Docker.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required