![]() Pull latest Golang image from Docker Hub.RUN go get /upitau/goinbigdata/examples/hellorest ![]() Edit the Dockerfile with your favourite editor so that it has the following content: FROM golang:latest mkdir restful-goĭocker image is built from Dockerfile. Creating Docker imageįirst we need to create a Docker image with our RESTful service. If you do not have Docker (and Docker Machine) installed, please follow official Mac OS X installation instruction. In our example we will piggy back on a simple RESTful service developed in an earlier posts How To Create A Simple RESTful Service In Go. In this post we will learn how to run a simple Go RESTful service in Docker on Mac. Docker can run natively on Ubuntu and some other Linux distributions, but not on Mac OS X yet. Docker is the most popular container technology nowadays and many developers run it locally on their computers and laptops.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |