user3768971
user3768971

Reputation: 117

docker, invalid reference format

I'm new to docker and trying to learn how to push and pull. I've been stuck with this problem for a while. I'm trying to push and image to my docker, but keep getting the same error "Invalid reference format" see picture for details.

trying to push to my docker

Upvotes: 1

Views: 13572

Answers (2)

yamenk
yamenk

Reputation: 51778

Before pushing the local image to the repository, you should tag the image with the repository url:

docker tag staticwebserver:v1 <registry-url/repository>staticwebserver:v1

Then you push the tagged image:

docker push <registry-url/repository>staticwebserver:v1

Upvotes: 3

vivekyad4v
vivekyad4v

Reputation: 14853

Remove the [], it should be staticwebserver:v1. Docker doesn't understand the format which you are trying to use/post with the registry.

Upvotes: 2

Related Questions