HUB
Sign inSign up

fstab/go

By fstab

•Updated about 11 years ago

Image
0

1.8K

fstab/go repository overview

⁠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
    

Tag summary

Content type

Image

Digest

sha256:b02934f64…

Size

186.4 MB

Last updated

about 11 years ago

docker pull fstab/go