docker-go

command module
v0.0.0-...-ec844e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: MIT Imports: 4 Imported by: 0

README

Docker with Go

In this project I used Docker with a simple Go project.

Technologies Used

  • Go
  • Docker

Dependencies

Executing program

  • Download the repository to your computer and go to project file
git clone https://github.com/mobenh/docker-go
cd docker-go
  • Run Docker file
docker build -t docker-test .
  • Check image
docker image ls
  • Run project
docker run -p 8080:8081 -it docker-test
  • Go to browser and type localhost:8080 it should say: Hello, "/"
  • Type localhost:8080/hi and it should say: Hi

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL