Skip to content

Go build not working when volume is mounted in Docker #64

@bene-dt0

Description

@bene-dt0

I'm facing a problem when I try to run the docker run command:

docker run -it --volume $(pwd):/project mmdb-from-go:latest /bin/bash

and afterwards the Go build command:

go build && ./mmdb-from-go-blogpost

I need to update the go build command to the following to get it working:

go build -buildvcs=false && ./mmdb-from-go-blogpost

Is this something only I'm having trouble with or is this a general problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions