The images, containers, volumes and networks that I had in my system have disappeared.
Description
The images, containers, volumes and networks that I had in my system have disappeared. This is the second time it has happened.
My system is a MacBook Pro Ventura 13.4.1 (c) (22F770820d)
I would like to know what is the root cause of this?
On some occasions I was able to recover them by installing Docker Desktop and the route appeared /Library/Containers/com.docker.docker/Data/vms/0/images
From there I was able to extract and save all my information, but today, as I don't use Docker Desktop, it doesn't appear.
Could you provide me with information on which system folder these images are hosted on, please?
There may be an application bug.
I use this configuration:
HomeDesktop sujeto$ colima list PROFILE STATUS ARCH CPUS MEMORY DISK RUNTIME ADDRESS default Running x86_64 4 8GiB 60GiB docker
HomeDesktop sujeto$ docker context list NAME DESCRIPTION DOCKER ENDPOINT ERROR colima * colima unix:///Users/user/.colima/default/docker.sock default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
Thanks a lot.
Version
HomeDesktop:Data sujeto$ colima version && limactl --version && qemu-img --version colima version 0.6.1 git commit: fa1bc249f921287745f01fb02075c9ecbb491c31
runtime: docker arch: x86_64 client: v24.0.7 server: v24.0.5 limactl version 0.18.0 qemu-img version 8.1.2 Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers
Operating System
- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [ ] Apple Silicon >= 14 (Sonoma)
- [ ] Linux
Output of colima status
HomeDesktop: Data sujeto$ colima status INFO[0009] colima is running using QEMU INFO[0009] arch: x86_64 INFO[0009] runtime: docker INFO[0009] mountType: 9p INFO[0009] socket: unix:///Users/sujeto/.colima/default/docker.sock
Reproduction Steps
- colima start
- colima status
- docker images
- docker ps -a
Expected behaviour
Watch all the containers created previously.
Additional context
No response
The warning is there in https://github.com/abiosoft/colima/releases/tag/v0.6.0
Note: Due to breaking changes, deletion of existing profiles is required."
However, the warning is not loud enough and @abiosoft has said he will make it louder.
The release notes for all v0.6.x releases have been further updated to include the warning.
Anything we need to to to ~/.lima/* ourselves?
Colima might have lost its profiles, but lima's VMs are still there.
My old one was in ~/.lima and my new one was in ~/.colima. All I wanted to save were the volumes, which I had backed up but not in the same tree structure. What I did was run limactl start colima and limactl shell colima, ran sudo dockerd, opened another shell in a new tab with limactl shell colima, made a directory somewhere in /Users/<username>, and ran this in the shell:
docker volume list
After checking the volumes were there I ran this to back it up:
for v in $(docker volume list --format '{{.Name}}'); do docker run --rm -v $v:/from alpine ash -c "cd /from ; tar
-cf - . " > "volume-$v.tar" $v; done
All that does is start a temporary container and run tar on it, outputting to standard output, and then uses the shell's redirect to put it in the current directory within lima's shell (inside the virtual machine, outside of any docker container)
Then I compressed them:
gzip *
Then to check them, I ran:
for f in *; do echo $f; tar -ztvf $f | wc -l; done
Then I exited the shell and stopped the lima vm with:
limactl stop colima
When I've backed up ~/.lima or am otherwise sure I'm ready to delete it I'll run this:
limactl delete colima
Hi all,
It happened to me today and I don't see any docker container. It is very disturbing to be in such position where I lost very last number of data.
Is there any way to restore them?
Thank you very much
Ability to pin a specific version of Colima is currently being worked on. i.e. regardless of brew update, you can remain on the version that works best for you till you're comfortable to upgrade.
Is there any way to restore them? If you haven't run
colima deleteyet, you can downloader older binaries and things should just work like before.
I assume you'd want to go back to v0.5.6. The following should do the trick.
# download binary
curl -LO https://github.com/abiosoft/colima/releases/download/v0.5.6/colima-$(uname)-$(uname -m)
# install in $PATH
sudo install colima-$(uname)-$(uname -m) /usr/local/bin/colima
I ran into this periodically, it has been for the past couple of months, just upgraded to 0.6.7 and deleted the profile, started fresh but still seeing it. Every day or few days, all my images disappeared and I have to rebuild all of them. Is there any reason for this? I cannot identify any pattern for this behavior, is there any reason for this?
What are the suggested steps to migrate from v0.5.x to v0.6.x, so I would not lose all of my data? What I care about mostly are volumes, other stuff not so much but would be nice to keep