abiosoft / abiosoft/colima

Unable to use custom host ips with `--network-host-addresses`

Offen
#1,631 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
30.8k
Forks
613
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

Following my issue from here: https://stackoverflow.com/questions/78814815/custom-docker-container-ip-on-macos-with-colima

My docker-compose file:

```
services:
nginx:
ports:
- 127.42.90.84:8081:80
volumes:
- ./:/srv/app:rw,cached
```

When trying to access `127.42.90.84` I do get `Response too long`. Started colima with

```
colima start --cpus 4 --memory 16 --disk 100 --network-host-addresses
```

### Version

```
colima version 0.10.3
git commit: 00f6c297e92a82c04a4ab507db0a61435650d7e8

runtime: docker
arch: aarch64
client: v29.7.2
server: v29.5.2
limactl version 2.2.0
qemu-img version 9.2.2
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
```

### Operating System

- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [x] Apple Silicon >= 14 (Sonoma)
- [ ] Linux

### Output of `colima status`

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs

### Reproduction Steps

1. Start colima
2.Start containers with `docker-compose up -d`
3. Unable to access nginx

### Expected behaviour

I should be able to access nginx

### Additional context

_No response_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.