`dockerbuild.Image` doens't let me push to my loca...
# general
d
dockerbuild.Image
doens't let me push to my local image registry:
Copy code
const baseImage = new dockerbuild.Image("BaseImage", {
  context: { location: "../.." },
  dockerfile: { location: "../../Dockerfile" },
  tags: ["localhost:6500/my-app:latest"],
  push: true,
});

failed to solve: failed to push localhost:6500/my-app:latest: failed to do request: Head "<http://localhost:6500/v2/my-app/blobs/sha256:5e6e6e48b19d45babeebcd2686ba66128b670d8bd1fdf9a8bea440fbd5a5ae76>": dial tcp [::1]:6500:connect: connection refused
I already tried using
registries
and also
exports
options. When I use the cli to tag and push, it works perfectly:
Copy code
curl <http://localhost:6500/v2/_catalog>
{"repositories":["hello-world","my-app"]}

docker push localhost:6500/my-app:latest
The push refers to repository [localhost:6500/my-app]
55738c06c797: Pushed
3e1e43be76cc: Pushed
690e87867337: Pushed
ea448d533fb7: Pushed
a470a4b9056b: Pushed
0efbb5b178a9: Pushed
cfeb6be3106f: Pushed
46bda5a44395: Pushed
2aabcd43849e: Pushed
5cf7c308ca3c: Pushed
8341eab18ef9: Pushed
latest: digest: sha256:860795ca1ce16fba760d726d8bb150c01079f9feeba053a709aeaeb7982d676f size: 2388