abiosoft / abiosoft/colima

"colima ls -j" does not contain "address" field when running in "--arch x86_64" mode

未關閉
#1,304 2 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
30.8k
分支
613
PR 合併指標
30 天內沒有已合併 PR

描述

### Description

When running Colima on my M4 Macbook like this (took from [here](https://java.testcontainers.org/supported_docker_environment/#colima) to get it working with Testcontainers):
`colima start --network-address`
This command:
`colima ls -j`
gives me:
`{"name":"default","status":"Running","arch":"aarch64","cpus":2,"memory":2147483648,"disk":107374182400,"address":"192.168.205.3","runtime":"docker"}`

But, if I want to use Colima in `x86_64` mode (to get Oracle images working (which I need with Testcontainers for my integration tests)) and start it like this (first running `colima stop` and `colima delete`, of course):
`colima start --arch x86_64 --network-address`

then executing `colima ls -j` gives me:
`{"name":"default","status":"Running","arch":"x86_64","cpus":2,"memory":2147483648,"disk":107374182400,"runtime":"docker"}`

So, the `address` field is not there anymore.

P.S. `colima version 0.8.1`

### Version

_No response_

### Operating System

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

### Output of `colima status`

When started with `colima start --arch x86_64 --network-address`:
```
colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/anatoliibalakiriev/.colima/default/docker.sock
```
When started with `colima start --network-address`:
```
colima status
INFO[0015] colima is running using macOS Virtualization.Framework
INFO[0015] arch: aarch64
INFO[0015] runtime: docker
INFO[0015] mountType: sshfs
INFO[0015] address: 192.168.205.3
INFO[0015] socket: unix:///Users/anatoliibalakiriev/.colima/default/docker.sock
```

### Reproduction Steps

1. Start Colima with this command: `colima start --arch x86_64 --network-address`
2. Run `colima ls -j` and check the output

### Expected behaviour

field `"address":""` must be present, but it's not.

### Additional context

_No response_

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。