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
'created' state not changed after 'crun exec' #172
Comments
the state should change after you issue a |
I am finding a bit hard to understand the "state" meaning across different tools. I will put some questions and eventually update/create some documentation: a) Is the container "state" only relative to the «main containter» "process" defined in config.json? |
a) yes the state is only relative to the main process |
@giuseppe thanks for the info About the potential for race conditions this is a very high level «Did not look at the code» concern with "crun exec". |
The issue was my lack of understanding of the "state" meaning. |
After creating a container with "crun create" and executing sh on it with "crun exec", while the shell is being executed within the container, crun reports the container is in the "created" state.
Test setup:
How to reproduce:
In terminal 1:
socat -d UNIX-LISTEN:/tmp/my_test_socket,fork TCP:localhost:8080
In terminal2:
nc -nvkl 8080
In terminal 3
In terminal 4
crun list
The text was updated successfully, but these errors were encountered: