Skip to content

Unable to use custom host ips with --network-host-addresses #1631

Description

@nehalist

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)
  • 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
  2. Unable to access nginx

Expected behaviour

I should be able to access nginx

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions