Docker Compose Getting Started error

The Docker Compose > Getting Started docs didn’t work for me on Windows 10. “Step 4: Build and run your app with Compose” says to open or localhost:5000 in a browser. Neither worked. I kept getting:
This site can’t be reached
localhost refused to connect.

The solution for me was at the very top of the docker cmd window:
docker is configured to use the default machine with IP

In a browser when I connected to, and it worked fine.

why not use http://docker?

I tried http://docker bu that also didn’t work.

http://docker:5000? Did you undo your changes to the VM? Reboot?

I didn’t try rebooting. (And yes, I did try the URL with the port.) I would try rebooting now, but I’ve already removed the getting started image and moved on to the main task I wanted to do with docker. Thanks for your input though. It might be helpful to someone else later.