Skip to content

Cannot connect to the Jupyter from outside the container #3497

@tensordia

Description

@tensordia

Required prerequisites

  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!

Describe the bug

I want to use cuda quantum for research and teaching. Most of the time I work on Mac. I did get it run as a container using OrbStack. I then run the jupyter lab to start the server within the container. But I wasn't able to connect to the Jupyter lab from the browser living on the host machine (the Mac).

To verify if this is an OrbStack issue, I tested the same port mapping with the official docker image from jupyter lab. And I am able to connect to jupyter lab from outside the container.

I am wondering if this is intended or a bug in the cuda-quantum docker build or I missed some installation steps.

Steps to reproduce the bug

  1. run container docker run -it -p 8888:8888 --name cuda-quantum nvcr.io/nvidia/nightly/cuda-quantum:cu12-latest
  2. start jupyter lab inside the container jupyter lab
  3. open browser on the host machine, visit http://localhost:8888/lab?token=<sometoken>
  4. the browser says "localhost refused to connect." ERR_CONNECTION_REFUSED

Expected behavior

able to use jupyter lab.

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment

  • CUDA-Q version: the version from cuda-quantum nvcr.io/nvidia/nightly/cuda-quantum:cu12-latest
  • Python version: same as above
  • C++ compiler: same as above
  • Operating system: MacOS 15 (Sequoia), Chip is M3 Pro

Suggestions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions