abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
19.26k stars 385 forks source link

Colima seems to "die" after sleep on Mac. #460

Open emilpriver opened 1 year ago

emilpriver commented 1 year ago

Description

If I leave my computer and my computer sleeps for a longer time, for example over night do my Colima stop and I need to call run colima stop && colima start in order to start it again. It's not a big problem haha, more a nice thing to be able to skip.

Version

Colima Version: colima version 0.4.6 Lima Version: limactl version 0.12.0 Qemu Version: qemu-img version 7.1.0

Operating System

Reproduction Steps

1.Put computer to a "hard" sleep

  1. See if Colima is stoped by for example running docker ps
  2. Start Colima with colima stop && colima start.

Expected behaviour

To still be running.

Additional context

No response

karlhaworth commented 1 year ago

+1

kamiltrantvananh commented 1 year ago

+1

andreyors commented 1 year ago

+1

dzeglen-evo commented 1 year ago

It also seems to sometimes hang when executing colima stop, just printing INFO[0000] stopping colima for ages

dikderoy commented 1 year ago

same on M2 processors

also very weirdly, sometimes it is "not entirely" dead.

i.e. it's being stuck launching the containers. but docker (over mounted socket) reports that networks and container were Created, but they do not proceed to Running state.

while docker commands continue to report state.

ie. I can do docker images or docker ps and they respond just fine. I can also download new images, but containers won't start.

winterqt commented 1 year ago

I can reproduce this, but colima stop --force at least lets colima start work again. It doesn't seem like the force stop leaves any processes dangling.

smazurov commented 8 months ago

Just experienced same behavior on an intel mac