Reputation: 117
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.
Upvotes: 1
Views: 13572
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
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