cold-train-5848
11/05/2018, 8:43 PM127.0.0.1:5000
. It seems to login correctly with the credentials, but when it tries to push the built image, it seems like it's not passing on the servername to the docker push commands.
const myAppDocker = new docker.Image("myapp", {
build: {
context: '../',
dockerfile: '../docker/myapp/Dockerfile'
},
imageName: "myapp",
registry: {
server: "127.0.0.1:5000",
username: config.require("dockerUsername"),
password: config.require("dockerPassword")
},
});
error: Error: 'docker push myapp:f61cb689da...' failed with exit code 1
The push refers to repository [<http://docker.io/library/myapp|docker.io/library/myapp>]
microscopic-florist-22719
lemon-spoon-91807
11/05/2018, 9:01 PMconst 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 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
11/05/2018, 9:34 PMconst 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")
},
});
lemon-spoon-91807
11/05/2018, 9:34 PM