colima
colima copied to clipboard
How do I completely remove the VM that colima uses on MacOS?
I am trying to "clean up" my VM of all the certs I have in there now, so I can make sure I know which certs at which locations in what cert format actually fixed a x509: certificate signed by unknown authority error for docker builds. (Still can't do direct docker pull from registry-1.docker.io, BTW, which is puzzling.)
However, colima delete does not seem to delete the vm, and I know this, because I was doing colima ssh and checking the /etc/docker/certs.d directory and all the certs I have added from the beginning of time remain there even if I forcibly delete them:
colima startcolima sshfind /etc/docker/certs.d(lists all the certs I added ever)find /Home/myname/.docker/certs.d(lists only those certs I have in my home right now-- its a volume mount, I know.)sudo rm -rf /etc/docker/certs.d/*(deletes all the certs that are in there)exitcolima deletecolima startcolima sshfind /etc/docker/certs.d(lists all the files from the beginning of time again) Even though most of the*.crtfiles in my~/.docker/certs.ddirectory are no longer there.
Where is the secret location of this VM file, so I can delete it and reload the VM from the downloaded ISO file?
@bmichaud the certs are copied into the VM on startup, it's not a direct link. So yeah, it will keep appearing at /etc/docker/certs.d in the VM.
@abiosoft , I have only two certs in my ~/.docker/certs.d area, but, when the VM starts up, there are like 12 in /etc/docker/certs.d on the VM even after a colima delete. That is why I feel like the prior state is preserved in a cached image somewhere. The source ISO that I donwloaded and refer to locally in the override.yaml is unchanged. Where is the saved copy, so I can start from scratch?
I have tried to do this:
colima deletelimactl delete --force colimathen empty trash (found that the~/.lima/colimacontainer directory gets removed with this) Either way, the old certs still get preserved.
For anyone coming across this in futre: colima delete deletes ~/.lima/colima just fine in the latest version, I did not need to run other commands.
Can't say anything about old certs