title: simple docker run target in goland can't find package main
body: <p>I'm trying to do some testing with go1.18 and thought I'd give docker run targets a shot from within goland Build #GO-213.6461.23, built on December 16, 2021.</p>
  <p>It's simple hello world application and I'm trying to use the docker image setup. It seems to have found the docker server and the docker image OK, but when I try and set the run target to this config, I get a warning that it cannot find package main.</p>
  <p>I've plonked in a screen shot of the config. It's got me tossed.</p>
  <p><a href="https://i.stack.imgur.com/VO8ti.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VO8ti.png" alt="goland config" /></a></p>
  <p>The error message is displayed in the screen shot above at the bottom.</p>
  <p>The code is a simple hello wordld</p>
  <pre><code>package main
  
  import (
      &quot;fmt&quot;
      &quot;time&quot;
  )
  
  func main() {
      var test string
      test = &quot;Hi there&quot;
      fmt.Println(test)
      time.Sleep(time.Second * 5)
  }
  </code></pre>
  <p>which of course runs fine if run on the local machine.</p>
  <p>The run target is configured as follows
  <a href="https://i.stack.imgur.com/HWskU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HWskU.png" alt="enter image description here" /></a></p>
  <p>That should be enough to reproduce the set up I'm trying to use.</p>