Open zhibirc opened 4 months ago
I am having the same issue
That is strange. Can you share your docker compose file?
Thank you very much for your answer!
Updates:
Run colima as:
colima start --cpu 4 --memory 8 --vm-type=vz --vz-rosetta --network-address
It starts successfully and works nicely. colima status
shows:
INFO[0005] colima is running using macOS Virtualization.Framework
INFO[0005] arch: aarch64
INFO[0005] runtime: docker
INFO[0005] mountType: virtiofs
INFO[0005] address: 192.168.107.2
INFO[0005] socket: unix:///Users/<username>/.colima/default/docker.sock
Connection to 192.168.107.2 is ok, let's say http://192.168.107.2:9000/api/resource
works, but http://localhost:9000/api/resource
doesn't.
It's not related to the Docker Compose setup, eventually, I discovered the same issue even I run just one container using docker run ...
.
I tried 127.0.0.1
, it doesn't immediately failed due to socket hang up, but connection still not working.
Result from curl -v http://127.0.0.1:9000/api/resource
* Trying 127.0.0.1:9000...
* Connected to 127.0.0.1 (127.0.0.1) port 9000
> GET /api/resource HTTP/1.1
> Host: 127.0.0.1:9000
> User-Agent: curl/8.6.0
> Accept: */*
>
< HTTP/1.1 200 Connection Established
* no chunk, no close, no size. Assume close to signal end
<
Confirm, same issue on a fresh install Apple Silicon >= 14 (Sonoma)
I face the same issue with v0.7.6. And I upgraded to v0.8.0 the problem resolved now. Apple Silicon M3
Description
Install Colima in according to repo's README.
Use docker compose, all required containers are run successfully.
Using
colima start --network-address
doesn't help.Could you please provide me (it may be useful to describe it comprehensively in documentation as well) with the guidance how to enable access from host machine as mentioned? Thanks in advance!
Version
Operating System
Output of
colima status
Reproduction Steps
docker compose up
Expected behaviour
Access my container by
http://localhost:<port>
Additional context
No response