-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null fields in docker config cause build-enclave to fail #591
Comments
I am having other issues with images created by Specifically shiplift expects the
|
For anyone coming across this issue, you can temporarily fix it by rolling back docker ( |
Thank you! Downgrading to Docker 24.0.5 fixed my issue |
#595 will fix the issue. |
#595 has been merged! |
I use
dockerTools.buildLayeredImage
to build docker images. It setsEnv
,Entrypoint
, andCmd
tonull
if not set, this causesnitro-cli build-enclave
to fail:If either
Entrypoint
orCmd
isnull
then it fails withUnsupportedEntryPoint
If both
Entrypoint
andCmd
are notnull
andEnv
isnull
then it panics here:aws-nitro-enclaves-cli/enclave_build/src/docker.rs
Line 331 in bc9c0b8
I think the panic is because of a logic bug:
aws-nitro-enclaves-cli/enclave_build/src/docker.rs
Lines 328 to 337 in bc9c0b8
Should instead be:
I don't know how docker handles it, but my assumption is:
Entrypoint
isnull
, then useCmd
Cmd
isnull
, then useEntrypoint
I have tested the images directly with docker and they work as expected.
The text was updated successfully, but these errors were encountered: