However, if you're following the tutorial as instructed from a Multipass VM, this fails as the app is only accessible from inside the Multipass VM, not from the host itself.
To Reproduce
Run the tutorial inside a Multipass host as instructed by the article
This site can’t be reached
localhost refused to connect.
The documentation should either instruct to expose the service on the Multipass host or recommend to open another shell into the Multipass VM and curl http://localhost:8000
Bug Description
In the tutorial Bundle a Node.js app within a rock, just after the
docker run
command, one is instructed to navigate to http://localhost:8000. You should see a blank page with a “Hello World from inside the rock!”.However, if you're following the tutorial as instructed from a Multipass VM, this fails as the app is only accessible from inside the Multipass VM, not from the host itself.
To Reproduce
Error:
The documentation should either instruct to expose the service on the Multipass host or recommend to open another shell into the Multipass VM and
curl http://localhost:8000
Environment
See Bundle a Node.js app within a rock
rockcraft.yaml
Relevant log output