-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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