Skip to content

[Bug]: Access the container from another container #326

@zdk

Description

@zdk

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

  1. https://github.com/apple/container && cd container
  2. Ensure in main branch, run make all test integration && make install
  3. Run, container system start
  4. Follow tutorial doc https://github.com/apple/container/blob/main/docs/tutorial.md from the start until this section https://github.com/apple/container/blob/main/docs/tutorial.md#access-the-web-server-from-another-container

Current behavior

Got the error: curl: (7) Failed to connect to 192.168.64.4 port 80 after 3073 ms: Could not connect to server as shown in the screenshot:

Image

Expected behavior

% container run -it --rm web-test curl http://192.168.64.4
<!DOCTYPE html><html><head><title>Hello</title></head><body><h1>Hello, world!</h1></body></html>

Environment

- OS: macOS 15.5 (24F74)
- Xcode: Version 26.0 beta 3 (17A5276g)
- Container: container CLI version 0.2.0-15-g7272328 (build: debug, commit: 7272328)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions