ERR_EMPTY_RESPONSE with getting-started tutorial

Similar to this post, I’m a Docker beginner running into a ERR_EMPTY_RESPONSE issue when trying the Start an app container step of the “getting-started” tutorial.

I can successfully run docker run -dp 3000:3000 getting-started, but when I navigate to http://localhost:3000 my browser shows the following message:

This page isn’t working
localhost didn’t send any data.

Unfortunately, unlike the older post, I can effectively run the application on port 3000 and running docker ps shows the following.

Other details:
MacOS: Ventura 13.3.1 on M1 chip
Docker Engine: v20.10.24

Started everything again from scratch and was able to get it working.