https://pulumi.com logo
Title
b

bright-horse-50102

03/23/2022, 1:50 AM
using
docker.Image
to build an image and running into some weird behavior, it doesn't seem to be respecting the registry I passed to the image. with the typescript runtime:
const image = new docker.Image('app', {
  imageName: 'org/app:latest',
  build: {
    context: '...',
    dockerfile: '...',
  },
  registry: {
    server: '<http://ghcr.io|ghcr.io>',
    username: 'user',
    password: 'password',
  },
});
this logs: error: Error: ' docker push org/app:latest-3c7ccbb9189753d00babbc9390eee3fa9ae7594d2b8642241ea7b139898c695c' failed with exit code 1 The push refers to repository [docker.io/org/app] error: denied: requested access to the resource is denied it seems to me like the push is being attempted to the
<http://docker.io|docker.io>
registry when I've specified
<http://ghcr.io|ghcr.io>
as a registry