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

How it works…

Verify whether the Docker image has been created successfully by executing the following command:

$ docker images

This will list all the top-level images, their repositories, tags, and their size, as shown in the following screenshot:

The Dockerfile we created in this recipe is exactly the same as the one we created in one of our previous recipes, except for the two additional commands that install the Go MySQL Driver and the Gorilla Mux URL router while building the image, as follows:

...RUN go get github.com/go-sql-driver/mysql;RUN go get github.com/gorilla/mux;...
See the Building your first Go Docker image recipe.

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