Giter Club home page Giter Club logo

Comments (8)

abiosoft avatar abiosoft commented on May 14, 2024 1

Thanks for your detailed response and workaround.

I have actually considered this before but I thought it will be a rare case. I should work on a fix soon.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024 1

@irisTa56 can you try the current master version? https://raw.githubusercontent.com/abiosoft/colima/master/colima.

If you need help on how to install

curl -LO https://raw.githubusercontent.com/abiosoft/colima/master/colima && sudo install colima /usr/local/bin/colima

If you wouldn't mind, I would prefer a fresh start. i.e. colima delete and colima start.

I am pretty sure it is fixed. But want to confirm from your end before making a new release.

Thanks.

from colima.

irisTa56 avatar irisTa56 commented on May 14, 2024

@abiosoft
Thank you very much for such a quick update!!

I confirmed the followings:

$ curl -LO https://raw.githubusercontent.com/abiosoft/colima/master/colima && sudo install colima /usr/local/bin/colima
[...]
$ colima delete
Are you sure you want to delete the VM and all settings? [y/N] y
[colima] 16:37:11 deleting docker and kubernetes configs ...
$ rm -rf ~/.colima # to remove my workaround script
$ colima start
[colima] 16:44:04 starting VM ...
[colima] 16:44:34 provisioning VM ...
[colima] 16:44:34 provisioning docker ...
[colima] 16:44:34 starting docker ...
[colima] 16:44:35 docker startup successful
[colima] 16:44:35 done
$ colima status
docker is installed VM?
success

docker is running in VM?
success

docker is installed on Host?
success

docker client on host can access the VM server?
success

kubernetes is installed in VM?
error

kubernetes is running in VM?
error

kubernetes client on host can access the VM?
error

some checks failed :(

// and docker commands works fine!

from colima.

irisTa56 avatar irisTa56 commented on May 14, 2024

P.S.

I noticed that I didn't run colima delete successfully because of kubectl: command not found.
So I commented out this line, and then confirm again:

$ colima delete
Are you sure you want to delete the VM and all settings? [y/N] y
[colima] 17:04:20 deleting docker and kubernetes configs ...
[colima] 17:04:20 deleting colima VM ...
[colima] 17:04:20 stopping docker ...
[colima] 17:04:21 stopping VM ...
[colima] 17:04:22 done
[colima] 17:04:24 deleting other configs ...
[colima] 17:04:24 done
$ colima start
[colima] 17:04:32 creating and starting VM ...
[colima] 17:05:28 provisioning VM ...
[colima] 17:05:28 provisioning docker ...
[colima] 17:05:28 provisioning docker in VM ...
[colima] 17:05:56 restarting VM to complete docker setup ...
[colima] 17:06:30 VM restarted
[colima] 17:06:31 starting docker ...
[colima] 17:06:31 docker startup successful
[colima] 17:06:31 done
$ colima status
docker is installed VM?
success

docker is running in VM?
success

docker is installed on Host?
success

docker client on host can access the VM server?
success

kubernetes is installed in VM?
error

kubernetes is running in VM?
error

kubernetes client on host can access the VM?
error

some checks failed :(

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

P.S.

I noticed that I didn't run colima delete successfully because of kubectl: command not found.
So I commented out this line, and then confirm again:

thanks for catching that

from colima.

ngonik avatar ngonik commented on May 14, 2024

Hi @abiosoft. I'm having this same issue on v0.2.2, even after a clean start with colima delete and colima start. Even the workaround explained by @irisTa56 doesn't seem to help.

Getting Cannot connect to the Docker daemon at unix:///Users/nicolas.gonik/.docker/run/docker.sock. Is the docker daemon running? when doing docker ps or any other docker action.

Your help will be greatly appreciated.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Hi @abiosoft. I'm having this same issue on v0.2.2, even after a clean start with colima delete and colima start. Even the workaround explained by @irisTa56 doesn't seem to help.

Getting Cannot connect to the Docker daemon at unix:///Users/nicolas.gonik/.docker/run/docker.sock. Is the docker daemon running? when doing docker ps or any other docker action.

Your help will be greatly appreciated.

@ngonik Looks like you have multiple docker contexts configured.

What does running docker context ls give you? If it lists more than one, switching to the default with docker context use default should resolve it.

from colima.

ngonik avatar ngonik commented on May 14, 2024

That did the trick. Thanks!

from colima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.