How can I programatically determine if a Colima VM is running? #1350
Replies: 3 comments 1 reply
-
You can inspect the |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response! I'm curious - what makes programatically invoking the colima CLI more reliable than checking for the existence of an |
Beta Was this translation helpful? Give feedback.
-
It is possible for the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On OSX I have noticed there is an ssh.sock Unix socket, in my $HOME/.colima/_lima/colima folder. This socket seems to exist if and only if a colima VM is running. However, I haven't found any documentation for ssh.sock so I don't know if checking for ssh.sock is reliable. Of course there's always some sort of os.exec() of
colima status
but that doesn't feel ideal. Thanks!Beta Was this translation helpful? Give feedback.
All reactions