Comments (8)
It is perfectly fine for the docker socket file to be available and be a broken link. In fact, that was the design. It becomes an active link only when Colima is up and running.
Are you sure that Colima started successfully and yet you couldn't use docker? If yes, can you share the outputs of colima start
, colima version
and colima status
commands executed in that order.
Thanks.
from colima.
okay, can you kindly share the outputs of these commands? #7 (comment)
from colima.
Thanks for the sharing the log output.
BTW I am actually not asking for the verbose output :), the standard one is fine.
I am struggling to reproduce your scenario. Are you saying that starting colima with colima start --cpu 3 --memory 6 --disk 75
is causing the issue for you?.
If you wouldn't mind one more time, can you just run this in your terminal and share the output as it is from your terminal. No need to tail the verbose log.
colima stop
colima start --cpu 3 --memory 6 --disk 75
colima version
colima status
from colima.
That looks perfectly fine.
If you were able to reproduce it again, it would be appreciated if you can update this thread.
Thanks.
from colima.
I will actually be closing this issue as what you've described (with regards to the socket) is the expected behaviour.
I will re-open when an issue is ascertained.
from colima.
As mentioned in point 4, the subsequent start of colima
still has the error.
ok - I think my usage was the problem:
I have these aliases:
alias start_colima='colima start --cpu 3 --memory 6 --disk 75'
alias stop_colima='colima stop'
My guess: when I use start_colima
and it detects a change in the config, then the socket doesn't work anymore. Is this true?
from colima.
; colima start
Linux
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-09-10 14:53:54 UTC; 52min ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 764 (dockerd)
Tasks: 16
Memory: 1.7G
CGroup: /system.slice/docker.service
└─764 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Warning: Stopping docker.service, but it can still be activated by:
docker.socket
time="2021-09-10T21:17:39+05:30" level=info msg="Sending SIGINT to hostagent process 46698"
time="2021-09-10T21:17:39+05:30" level=info msg="Waiting for the host agent and the qemu processes to shut down"
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Received SIGINT, shutting down the host agent"
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Shutting down the host agent"
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Unmounting \"/Users/vijay\""
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Unmounting \"/tmp/colima\""
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Shutting down QEMU with ACPI"
time="2021-09-10T21:17:39+05:30" level=warning msg="[hostagent] connection to the guest agent was closed unexpectedly"
time="2021-09-10T21:17:39+05:30" level=info msg="[hostagent] Sending QMP system_powerdown command"
time="2021-09-10T21:17:49+05:30" level=info msg="[hostagent] Forwarding \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:17:49+05:30" level=warning msg="[hostagent] failed to setting up forward from \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:17:49+05:30" level=warning msg="[hostagent] connection to the guest agent was closed unexpectedly"
time="2021-09-10T21:17:59+05:30" level=info msg="[hostagent] Forwarding \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:17:59+05:30" level=warning msg="[hostagent] failed to setting up forward from \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:18:00+05:30" level=warning msg="[hostagent] connection to the guest agent was closed unexpectedly"
time="2021-09-10T21:18:10+05:30" level=info msg="[hostagent] Forwarding \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:18:10+05:30" level=warning msg="[hostagent] failed to setting up forward from \"/run/user/501/lima-guestagent.sock\" (guest) to \"/Users/vijay/.lima/colima/ga.sock\" (host)"
time="2021-09-10T21:18:10+05:30" level=warning msg="[hostagent] connection to the guest agent was closed unexpectedly"
time="2021-09-10T21:18:15+05:30" level=info msg="[hostagent] QEMU has exited"
; colima stop
I can confirm that just using the plain vanilla colima start
and colima stop
avoided the issue. And thus, it points to the fact that colima thinking that the config changed is the root cause of this behavior
from colima.
from colima.
Related Issues (20)
- Too many open files when spinning up multiple kind clusters HOT 3
- DNS errors with AWS S3
- Kubernetes cluster not accessible - using `kubectl` command from the host machine's terminal
- Start colima without rewriting `colima.yaml` config
- Error starting OpenSearch using Colima on Mac m1 HOT 1
- The same `postgis` container does not work in `colima`, but works in `docker-desktop` HOT 1
- Add support for SpinKube WebAssembly runtime HOT 2
- errors inspecting instance: [vz driver is running but host agent is not] HOT 1
- Disabling $HOME mounts by setting `mounts:` causes startup failure
- error provisioning kubernetes: error at 'downloading and installing' HOT 1
- Can't chroot from a vz container
- Can't read from /var/folders/ from docker
- Unable to run on macOS GitHub runner with brew installation HOT 2
- colima ls won't work when using --profile flag
- Can't cache layers with docker-compose
- ga.sock Issue - Guest agent does not seem to be running; port forwards will not work HOT 14
- How to change colima config default image HOT 2
- Can't mount `docker.sock` when using `virtiofs`
- Colima doesn't run on M2 Macs HOT 1
- Containers on Apple Silicon with emulated x86 are not reachable from outside HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colima.