Skip to content

A simple docker image that prints "Hello, World" with Go Language

Notifications You must be signed in to change notification settings

lucas-campelo/sample-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This repo aims to show off my first dockerfile, as a learning exercise. So exciting! XD

Setting up

First off, make sure docker is installed. I did it using curl.

curl -fsSl https://get.docker.com/ | sh
docker version

Go to repo's directory and execute the following command to build the image:

docker build -t hello-golang:1.0 .

Create and run container:

docker run --name hello-go hello-golang:1.0

And voilá! Here's your "Hello, World!" message. :D

You can run it again using:

docker start hello-go -a

About

A simple docker image that prints "Hello, World" with Go Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published