Hello people,
I'm trying to a build a very basic container image based on another image located in a private registry:
package main
import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)
#doStuff: {
// Source code of the Python application
source: dagger.#FS
// Resulting container image
image: _build.output
// Build steps
_build: docker.#Build & {
steps: [
docker.#Pull & {
source: "eu.gcr.io/private/image:foo"
},
docker.#Set & {
config: cmd: ["sh", "-c", "'echo foo'"]
},
]
}
}
// Example usage in a plan
dagger.#Plan & {
client: filesystem: "./src": read: contents: dagger.#FS
actions: build: #doStuff & {
source: client.filesystem."./src".read.contents
}
}
The image exists and I can pull the image just fine with docker, e.g.:
docker pull eu.gcr.io/private/image:foo
However dagger-cue gives me the following error:
1:50PM FATAL failed to execute plan: task failed: actions.build._build._dag."0"._pull: pulling from host eu.gcr.io failed with status code [manifests foo]: 401 Unauthorized
The problem also occurs with DockerHub.
According to https://docs.dagger.io/162770/faq/#how-do-i-log-in-to-a-container-registry-using-a-dagger-sdk this should just work, but it does not π¦
Can someone help me out?