-
Notifications
You must be signed in to change notification settings - Fork 81
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
Enclave hangs up if Dockerfile CMD has a relative path #388
Comments
We set a working directory for
|
@abhinit What was the OS (which release of Ubuntu/Amazon Linux? or something else?) of the instance on which you were building the enclave docker image? I see that bionic is used as the base for the enclave. |
Thanks a ton. This is helpful. It is promising to know that bionic ec2 parent instances can run nitro docker images based on bionic. I will double check the nitro installation/configuration on my bionic ec2 instance which for some reason (maybe kernel version or something in my Dockerfile like you experienced with |
Hello, I am facing the same issue, I am using the Amazon Linux 2 and mentioning the full path in the Dockerfile, yet it still does not seem to work |
I believe the fact that the |
I have a dockerfile with a relative path in the CMD:
or
An enclave created using
enclave-run
command is created and terminated immediately due to (a possible) missing socket connection./run/nitro_enclaves/
has no.sock
file.The complete log is as follows:
It succeeds if I use an absolute path in the dockerfile CMD:
Recreating the error:
Dockerfile:
server.py:
Build image
docker build ./ -t d3_error
Build enclave image
nitro-cli build-enclave --docker-uri d3_error:latest --output-file ./d3_error.eif
Run enclave:
nitro-cli run-enclave --cpu-count 2 --memory 1024 --eif-path ./d3_error.eif --debug-mode --enclave-cid 17
Describe enclaves
nitro-cli describe-enclaves
returns[]
Just to add, docker run succeeds
docker run -i -t --name d3_error_c d3_error:latest
The text was updated successfully, but these errors were encountered: