abiosoft / abiosoft/colima

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

オープン
#1,631 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
30.8k
フォーク
613
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。