Skip to content

fstab/docker-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

docker-go

Test go programs in a Linux container.

Run from Docker Hub

The fstab/go image contains a go build environment and can be used to compile, run, and test go applications in a Linux container.

If the GOPATH environment variable is set correctly on the host system, fstab/go can be run as follows:

docker run -v $GOPATH:/home/go -t -i fstab/go

This will pull the image from docker hub, start the container, and launch a shell with the go command available and the GOPATH mapped to /home/go.

Build from Source

  1. Clone fstab/docker-go from GitHub.

    git clone https://github.com/fstab/docker-go.git
  2. Build the docker image

    cd docker-go
    docker build -t="fstab/go" .
  3. Run with the same command as described above.

    docker run -v $GOPATH:/home/go -t -i fstab/go

About

Test go programs in a Linux container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published