Error:-
I have been using colima instead of the docker desktop for some time. Recently while starting colima got the following error
errors inspecting instance: [failed to get Info from "/Users/ankitmittal/.lima/colima/ha.sock": Get "http://lima-hostagent/v1/info": dial unix /Users/ankitmittal/.lima/colima/ha.sock: connect: connection refused]
Cause:-
The issue is caused due to the older sock file and colima not able to read from it properly.
Solution :-
To resolve the issue go ahead and stop the colima using limactl and than start again and check status
1. Stop the colima using limactl
ankitmittal@ip-172-168-2-151 ~ % limactl stop -f colima
INFO[0000] The qemu driver process seems already stopped
INFO[0000] Sending SIGKILL to the host agent process 1082
ERRO[0000] operation not permitted
INFO[0000] Removing /Users/ankitmittal/.lima/colima under "*.pid *.sock *.tmp"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/ga.sock"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/ha.pid"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/qmp.sock"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/serial.sock"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/serialp.sock"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/serialv.sock"
INFO[0000] Removing "/Users/ankitmittal/.lima/colima/ssh.sock"
2. Start the colima
ankitmittal@ip-172-168-2-151 ~ % colima start
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] preparing network ... context=vm
INFO[0001] starting ... context=vm
INFO[0038] provisioning ... context=docker
INFO[0038] starting ... context=docker
INFO[0044] done
3. Check the status of the colima, it should be up and running now
ankitmittal@ip-172-168-2-151 ~ % colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/ankitmittal/.colima/default/docker.sock
"Resource": [
"arn:aws:kms:ap-south-1:121294719847:key/e96772364-f678-4589-82aa-396casdafu",
"arn:aws:kms:ap-south-1:121294719847:key/6415234-e778-4355-a224-8f42341234",
"arn:aws:kms:ap-south-1:121294719847:key/077b234-b165-4d5c-be78-a174ad23"
]
}
0 comments:
Post a Comment