-
Notifications
You must be signed in to change notification settings - Fork 611
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
nerdctl compose
hangs in 2.0
#3678
Comments
Please note that when the compose is not running, the command returns properly.
|
Okay, sorry for the wrong description earlier. I scoped down the culprit. It seems that during After I send |
Thanks @midnight-wonderer The current implementation of compose in nerdctl is not safe to use concurrently - to alleviate that (short of a full rewrite), a global lock was introduced: #3543 This is definitely the reason for the behavior here ^^^. Agreed with you that in the case of logs, it should not lock (or at least it should release early). Currently, the lock is implemented once, inside pkg/cmd/composer. To fix this we could either move the lock to every compose command (or at least have an explicit call to release the lock early in logs) |
Thanks for the details. Note for those finding this thread later.Now the issue became clear, a workaround is possible. It seems the lock only affects
|
So according to #3543 that means I can't use |
Wait, is the lock not per project? How so few people came here. |
nerdctl compose ps
hangs in 2.0nerdctl compose
hangs in 2.0
No, the lock is not per project. If I start my mediawiki using
|
Edited: The Gist
nardctl compose
can not run concurrently at the moment due to: #3543.Dubbed
global compose lock
; this is due to some of thenerdctl compose
functionalities not being safe for executing simultaneously yet.Original:
Description
nerdctl compose ps
never returns results; it simply hangs forever.Steps to reproduce the issue
nerdctl compose up
nerdctl compose ps
Additional info
nerdctl compose --debug ps
shows the following, then hangsCtrl + C
(SIGINT
) works properly. It looks likenerdctl
is waiting for something.Describe the results you received and expected
The list of containers in the compose project.
What version of nerdctl are you using?
Additional info
zypper info nerdctl
returnsAre you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: