Cant push image to local registry
See original GitHub issueI enabled registry with
mircrok8s.enable registry
then I successfully build my image with a Dockerfile.
microk8s.docker build -t localhost:32000/test:1 .
But I can’t push a custom image to the local registry
microk8s.docker push localhost:32000/test:1
It will stay stuck with the following message
The push refers to a repository [localhost:32000/test]
Am I missing something? any ideas of what could be wrong with the registry or my setup?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:31 (10 by maintainers)
Top Results From Across the Web
Cannot push image to local registry #3611 - GitHub
After upgrading from Docker for Mac 2.0.2.1 to 2.0.3.0, Docker is now unable to push images to a local registry via localhost, which...
Read more >How to push a docker image to a private repository
Push the image to the local registry running at localhost:5000 : $ docker push localhost:5000/my-ubuntu. Remove the locally-cached images.
Read more >Can't push image to local registry - Docker Community Forums
Can't push image to local registry ... When I run steps as in https://docs.docker.com/registry/#basic-commands I end up with HTTP status: 500 ...
Read more >Pushing a Docker image - Amazon ECR - AWS Documentation
If your image repository doesn't exist in the registry you intend to push to yet, create it. For more information, see Creating a...
Read more >Pushing and pulling images | Container Registry documentation
To push any local image to Container Registry using Docker or another third-party ... role can push images to gcr.io but cannot push...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok here is the reason for me localhost refers to the IPV6 version - and the command below hangs
wget http://localhost:32000/
But if I comment out the line below from my /etc/hosts
#::1 localhost ip6-localhost ip6-loopback
it works now.
I dont’t like workaround with disabling IPv6 loopback and it seems there is better way:
Notice that I used 127.0.0.1 instead of localhost.