colima: option --network-address does not expose internal ip address

Description

Starting colima with --network-address, or setting address: true in the config file, does not expose internal IP address of the docker host. colima list outputs an empty value for the ADDRESS column:

➜  ~ colima list
PROFILE    STATUS     ARCH       CPUS    MEMORY    DISK      RUNTIME    ADDRESS
default    Running    aarch64    4       4GiB      100GiB    docker

Version

Colima Version: 0.4.6 Lima Version: 0.12.0 Qemu Version: Stable 7.1.0

Operating System

  • macOS Intel
  • macOS M1
  • Linux

Reproduction Steps

  1. colima start --network-address
  2. <wait until colima started>
  3. colima list. The address field is empty

Expected behaviour

colima list should apparently show an ip address that can be used to access anything listening within the docker container

Additional context

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 5
  • Comments: 32 (8 by maintainers)

Most upvoted comments

Can you try with --network-driver slirp?

colima start --network-address --network-driver slirp

That’s strange. If you upgraded from a version < 0.4.0, you should colima delete and start afresh.

Can you stop colima and clear the following files, then try again?

colima stop
sudo rm -rf /etc/sudoers.d/colima /opt/colima
colima start --network-address

If it still fails, kindly run with --very-verbose flag and share the output.

Thanks.

I had the same issue, but while using the vz vm-type. Was able to resolve the issue with rebooting MacOS.

@abiosoft , It DOES work with the --network-driver slirp option. I’ll use this option from now on. Thanks!

~ colima list
PROFILE    STATUS     ARCH       CPUS    MEMORY    DISK      RUNTIME    ADDRESS
default    Running    aarch64    4       4GiB      100GiB    docker     192.168.106.2