colima icon indicating copy to clipboard operation
colima copied to clipboard

All containers and images are gone after colima reinstallation

Open leon0707 opened this issue 11 months ago • 2 comments

Description

My qemu was corrupt so I had to uninstalled both colima(also deleted the ~/.colima folder) and qemu, then reinstalled them. I couldn't see any containers or images after the reinstallation. Is there a way to restore the images and containers?

Version

Colima Version: 0.5.5 Lima Version: 0.17.2 Qemu Version: 8.1.0

Operating System

  • [X] macOS Intel <= 12 (Monterrey)
  • [ ] macOS Intel >= 13 (Ventura)
  • [ ] macOS M1 <= 12 (Monterrey)
  • [ ] macOS M1 >= 13 (Ventura)
  • [ ] Linux

Output of colima status

INFO[0000] colima is running using QEMU INFO[0000] arch: x86_64 INFO[0000] runtime: docker INFO[0000] mountType: sshfs INFO[0000] socket: unix:///Users/lfeng/.colima/default/docker.sock

Reproduction Steps

  1. brew uninstall qemu && brew uninstall colima
  2. rm -rf ~/.colima
  3. brew install colima

Expected behaviour

No response

Additional context

No response

leon0707 avatar Sep 19 '23 02:09 leon0707

Images are in ~/.lima/colima folder ... rename this folder, recreate colima, stop it and copy over images. Maybe it will work.

matejsp avatar Sep 19 '23 10:09 matejsp

Images are in ~/.lima/colima folder ... rename this folder, recreate colima, stop it and copy over images. Maybe it will work.

I saw 2 large files in the .lima basedisk and diffdisk. Unfortunately the containers are still missing

leon0707 avatar Sep 19 '23 20:09 leon0707