Strange behavior when using docker in goland

This is my setting below.

 

Run Targets

 

Run configurations

 

I have set the "--rm", but the container was not remove.

0
3 comments
Official comment

Hello,

Thanks for the report.

--rm flag is explicitly ignored in run configurations with Docker as a remote target due to bugs with race conditions. Please follow IDEA-264871.

As a workaround, please, remove containers manually using Services tab or docker container rm in Terminal.

I hope it helps.

package main
 
import (
"log"
"net/http"
)
 
func main() {
log.Println("starting server...")
 
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`Hello world`))
})
log.Fatal(http.ListenAndServe(":8080", nil))
}
0

Asty8952 Could you please elaborate a bit? What the issue in your case?

0

Please sign in to leave a comment.