This message was deleted.
# general
s
This message was deleted.
m
This definitely sounds like it could be a bug on our end. cc @lemon-spoon-91807 @creamy-potato-29402
l
Looking 🙂
so the way this is trying to work is that we use the 'registry' object for the "docker login" call
(which, given any previous error message) seems to have worked properly.
it's unclear ot me how docker is intended to be used at this point (and i'll have to lookup some docs)
my intuition on things was that once logged in, pushes and whatnot would implicitly be targeting that registry.
can you include more of the logs @cold-train-5848? When our docker steps fail, we should be printing out more stuff. was anything else printed for you? Thanks!
ok. i see the issue
we pass the 'imageName' ("myapp" in your example) as the repositoryUrl that we pass along all the way up to doing the push.
i think what might work is to do:
Copy code
const myAppDocker = new docker.Image("myapp", {
    build: {
      context: '../',
      dockerfile: '../docker/myapp/Dockerfile'
    },
    localImageName: "myapp",
    imageName: "your repo url here",
    registry: {
      server: "127.0.0.1:5000",
      username: config.require("dockerUsername"),
      password: config.require("dockerPassword")
    },
});
The docs also seem to back this up:
Copy code
/**
     * The qualified image name that will be pushed to the remote registry.  Must be a supported image name for the
     * target registry user.
     */
    imageName: pulumi.Input<string>;
@cold-train-5848 let me know if this is enough information for you to work off of. thanks! 🙂
c
@lemon-spoon-91807, yes, that worked, thanks!
Copy code
const myAppDocker = new docker.Image("myapp", {
    build: {
      context: '../',
      dockerfile: '../docker/myapp/Dockerfile'
    },
    localImageName: "myapp",
    imageName: "127.0.0.1:5000/myapp",
    registry: {
      server: "127.0.0.1:5000",
      username: config.require("dockerUsername"),
      password: config.require("dockerPassword")
    },
});
l
oh good. Glad to hear it!