[GH-ISSUE #79] [DOCKER] Alpine installation #40

Closed
opened 2026-02-25 22:32:27 +03:00 by kerem · 1 comment
Owner

Originally created by @Guikingone on GitHub (Oct 23, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/79

Hi everyone,

Small question about the installation of this tool in a Docker project, I try to install it in a nginx:alpine image, the problem is, once go is installed, here's the error that appears:

# go get -u github.com/FiloSottile/mkcert
# github.com/FiloSottile/mkcert
root/go/src/github.com/FiloSottile/mkcert/cert.go:87:19: undefined: x509.MarshalPKCS8PrivateKey
root/go/src/github.com/FiloSottile/mkcert/cert.go:198:18: undefined: x509.MarshalPKCS8PrivateKey
root/go/src/github.com/FiloSottile/mkcert/go110min.go:8:9: undefined: ThisProjectRequiresGo1·10OrHigher
root/go/src/github.com/FiloSottile/mkcert/go110min.go:8:31: invalid identifier character U+00B7 '·'
root/go/src/github.com/FiloSottile/mkcert/main.go:53:52: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)

I've tried to install it several time (after installing additionals tools) but nothing works, the error stay the same, does anyone has already solved the problem ? 🤔

Thanks for the help 😃

Originally created by @Guikingone on GitHub (Oct 23, 2018). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/79 Hi everyone, Small question about the installation of this tool in a Docker project, I try to install it in a `nginx:alpine` image, the problem is, once go is installed, here's the error that appears: ```bash # go get -u github.com/FiloSottile/mkcert # github.com/FiloSottile/mkcert root/go/src/github.com/FiloSottile/mkcert/cert.go:87:19: undefined: x509.MarshalPKCS8PrivateKey root/go/src/github.com/FiloSottile/mkcert/cert.go:198:18: undefined: x509.MarshalPKCS8PrivateKey root/go/src/github.com/FiloSottile/mkcert/go110min.go:8:9: undefined: ThisProjectRequiresGo1·10OrHigher root/go/src/github.com/FiloSottile/mkcert/go110min.go:8:31: invalid identifier character U+00B7 '·' root/go/src/github.com/FiloSottile/mkcert/main.go:53:52: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output) ``` I've tried to install it several time (after installing additionals tools) but nothing works, the error stay the same, does anyone has already solved the problem ? 🤔 Thanks for the help 😃
kerem closed this issue 2026-02-25 22:32:27 +03:00
Author
Owner

@FiloSottile commented on GitHub (Oct 23, 2018):

Hi! mkcert requires Go 1.10 or higher to compile, and it looks like you are using an out of date version.

<!-- gh-comment-id:432195286 --> @FiloSottile commented on GitHub (Oct 23, 2018): Hi! mkcert requires Go 1.10 or higher to compile, and it looks like you are using an out of date version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#40
No description provided.