Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing reference: "golang:1.9.3 as builder" is not a valid repository/tag: invalid reference format #268

Closed
cmoulliard opened this issue Jun 20, 2018 · 3 comments

Comments

@cmoulliard
Copy link
Contributor

Kubebuilder version use : 0.1.11

During the process to build the Dockerfile.controller, then docker reports this error

docker build . -f Dockerfile.controller -t gcr.io/kubeships/controller-manager:v1
Sending build context to Docker daemon    246MB
Step 1/23 : FROM golang:1.9.3 as builder
Error parsing reference: "golang:1.9.4 as builder" is not a valid repository/tag: invalid reference format

Do we need to use a specific version of docker to perform this build ?

@cmoulliard
Copy link
Contributor Author

The error is due to the fact that multi-stage docker build is not supported by distribution of Centos/Fedora Docker which is a bit outdated (docker 1.13).

I can get rid of this issue by using the imagebuilder tool -> https://github.com/openshift/imagebuilder

@droot
Copy link
Contributor

droot commented Aug 15, 2018

This should be fixed now. Pl. re-open if you run in to this issue with latest version of Kubebuilder.

@droot droot closed this as completed Aug 15, 2018
@gregsheremeta
Copy link

had the same issue, didn't realize that dnf install docker on Fedora 30 installs an ancient version. https://docs.docker.com/install/linux/docker-ce/fedora/ fixed me up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants