title: 2015/05/15 07:30:34 exec: "go": executable file not found in $PATH
body: <p>I am facing below issue tell me how to fix this!
  command used:</p>
  
  <pre><code>$ sudo docker run --rm -P -p 9090:9090 --name trial godock &amp;
  $ docker run --rm -P -p 9090:9090 --name trial godock2015/05/18
  03:35:25 exec: "go": executable file not found in $PATH
  # go version
  go version go1.2.1 linux/amd64
  </code></pre>
  
  <p><strong>Docker file</strong>:</p>
  
  <pre><code>FROM ubuntu
  RUN apt-get -y update
  ADD server.go /src/server.go
  ADD . /src
  EXPOSE 9090
  CMD ["go","run","/src/server.go"]
  </code></pre>
  
  <p><strong>server.go</strong>:</p>
  
  <pre class="lang-go prettyprint-override"><code>package main
  import(
    "io"
    "net/http"
    "log"
    "fmt"
  )
  func HelloServer(w http.ResponseWriter, req * http.Request) {
    io.WriteString(w, "hello, world!\n")
  }
  func main() {
    fmt.Println("Starting server")
    http.HandleFunc("/hello", HelloServer)
    err: = http.ListenAndServe(":9090", nil)
    if err != nil {
      log.Fatal("ListenAndServe: ", err)
    }
  }
  </code></pre>
  
  
  
  <p>Please help me to resolve this issue..</p>