https://blue-build.org/ logo
"open /keys: no such file or directory"
# questions
g
I got my image to build a few minutes ago! I uncommented a new module and rebuilt and got this error. Now even when that module is re-commented I get the error. It appears to be an internal thing? Would really appreciate some help with it.
Copy code
bash
l/goose-linux:latest => #31 [stage-5  1/19] RUN --mount=type=bind,from=stage-keys,src=/keys,dst=/tmp/keys   mkdir -p /etc/pki/containe
rs/   && cp /tmp/keys/* /etc/pki/containers/
l/goose-linux:latest => #31 ERROR: process "/bin/sh -c mkdir -p /etc/pki/containers/   && cp /tmp/keys/* /etc/pki/containers/" did not
 complete successfully: open /keys: no such file or directory
l/goose-linux:latest => ------
l/goose-linux:latest =>  > [stage-5  1/19] RUN --mount=type=bind,from=stage-keys,src=/keys,dst=/tmp/keys   mkdir -p /etc/pki/container
s/   && cp /tmp/keys/* /etc/pki/containers/:
l/goose-linux:latest => ------
l/goose-linux:latest => Containerfile.oBsr0_wkZgo:48
l/goose-linux:latest => --------------------
l/goose-linux:latest =>   47 |     # Key RUN
l/goose-linux:latest =>   48 | >>> RUN --mount=type=bind,from=stage-keys,src=/keys,dst=/tmp/keys \
l/goose-linux:latest =>   49 | >>>   mkdir -p /etc/pki/containers/ \
l/goose-linux:latest =>   50 | >>>   && cp /tmp/keys/* /etc/pki/containers/
l/goose-linux:latest =>   51 |     # Bin RUN
l/goose-linux:latest => --------------------
l/goose-linux:latest => ERROR: failed to build: failed to solve: process "/bin/sh -c mkdir -p /etc/pki/containers/   && cp /tmp/keys/*
 /etc/pki/containers/" did not complete successfully: open /keys: no such file or directory
a
message has been deleted
g
I've tried creating
files/keys/.gitkeep
but no luck
g
You'll want to make sure that you're running in the root of your repository and make sure that your public key is in the root
a
message has been deleted
I deleted cosign.pub.
g
That'll do it
7 Views