I am trying to do a dockerBuild but It's throwning an error at the "FROM" when it tries to pull an image from a public docker registry. I dont' have this issue when pulling the same from container().From(). I haven't had to set add my root CA to the dagger engine. Since the DockerBuild command is attached to Directory I don't have a way to do registry auth either and it doesn't look like my current auth context is passed into the DockerBuild.
#dockerBuild - failed to verify certs
1 messages · Page 1 of 1 (latest)
Looks like I am getting the same error with container().From() for that image too. So this is directly related to https://github.com/dagger/dagger/issues/4217.
@spice elbow just to double check, you're getting errors with both container.from()and dockerBuild opreations right?
so basically what you need is to setup the certs in the engine?
until we have the bandwidth to work on 4217, you have alternatives to needing to maintain a custom engine. So basically:
- https://github.com/dagger/dagger/issues/4217#issuecomment-1691922162
- You can use the official engine image and mount the secrets at engine bootup time as described here: https://github.com/dagger/dagger/blob/main/core/docs/d7yxc-operator_manual.md#custom-ca-certs