Docker for grafana 7.5.11 fails

When i try to run grafana 7.5.11 or 7.5.15 via docker i get the following error:

o: gopkg.in/macaron.v1@v1.4.0 (replaced by ./pkg/macaron): reading pkg/macaron/go.mod: open /go/src/github.com/grafana/grafana/pkg/macaron/go.mod: no such file or directory
The command ‘/bin/sh -c go mod verify’ returned a non-zero code: 1

does anyone know how to fix this problem? Thanks in advance

welcome to the :grafana: forum, @luixx

I just ran 7.5.11 inside a docker container and it worked. Can you share more about your setup and OS?

Hi the problems seems to be related to this bug Docker container fails to build in main · Issue #37225 · grafana/grafana · GitHub

When i change the docker file that “run go mod verify” is after the “build.go build” it works

RUN go run build.go build

RUN go mod verify

I only came today to this try, so right now it is working. thanks

1 Like