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

push image: Get http://0.0.0.0:5000/v2/: dial tcp 0.0.0.0:5000: connect: connection refused #5

Open
draschke opened this issue Aug 12, 2021 · 0 comments

Comments

@draschke
Copy link
Owner

Tried to follow this tutorial: https://github.com/draschke/vsc-sap-hana-mta-dev-env-node14x/blob/5aa2886e7e3684059d162104e2e1e86502d61e4f/Tutorial/Run a CAP Application on Kyma.md

I wasn't able to push the image.

The push refers to repository [0.0.0.0:5000/cpapp]
Get http://0.0.0.0:5000/v2/: dial tcp 0.0.0.0:5000: connect: connection refused

`node ➜ /workspaces/vsc-sap-hana-mta-dev-env-node14x/cap-kyma-app (main ✗)
$ kubectl port-forward deployment/docker-registry 5000:5000 &
[1] 6219
node ➜ /workspaces/vsc-sap-hana-mta-dev-env-node14x/cap-kyma-app (main ✗)
$ Forwarding from 127.0.0.1:5000 -> 5000

new Terminal
node ➜ /workspaces/vsc-sap-hana-mta-dev-env-node14x/cap-kyma-app (main ✗)
$ docker tag cpapp 0.0.0.0:5000/cpapp

node ➜ /workspaces/vsc-sap-hana-mta-dev-env-node14x/cap-kyma-app (main ✗)
$ docker push 0.0.0.0:5000/cpapp

The push refers to repository [0.0.0.0:5000/cpapp]
Get http://0.0.0.0:5000/v2/: dial tcp 0.0.0.0:5000: connect: connection refused

exposed the "insecure-registries" : but didn't help me
$ cat ~/.docker/daemon.json
{
"insecure-registries" : [
"localhost:5000",
"127.0.0.1:5000"
],
"debug" : true,
"experimental" : true
}

https://stackoverflow.com/questions/51468491/how-kubectl-port-forward-works

node ➜ /workspaces/vsc-sap-hana-mta-dev-env-node14x/cap-kyma-app (main ✗)
$ Forwarding from 127.0.0.1:5000 -> 5000

Forwarding from [::1]:5000 -> 5000 --> miss this line in my output

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

1 participant