Docker Community Forums

Share and learn in the Docker community.

Go Lang is not stable in docker

Expected behavior

I have installed the GOLANG in container, it is working fine.

Actual behavior

After restarting of Docker, GOLANG is not available.

Additional Information

   - apt-get -y update
  - apt-get install -y golang-go
  - go version
  - wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
  - sudo tar -xvf go1.10.linux-amd64.tar.gz
  - sudo mv go /usr/local
  - export GOROOT=/usr/local/go
  - export GOPATH=$HOME/Projects/ADMFactory/Golang
  - export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
  - go version

Steps to reproduce the behavior

  1. … Again reinstalling the GO lang.
  2. … Re- Start the container, GO lang. is not available in container