docker compose watch did download all docker dependencies
But when it started the services, it couldn’t connect to port 80.
I installed rootless docker, so I thought changing it to port 2000 would fix it
docker compose watch now wouldn’t show an error, but Firefox couldn’t connect to https://localhost:2000 because of some connection error
Then I installed Docker with root privileges, rebooted, tried again with port 80, and now Firefox thought the connection was unsafe, and when I proceeded anyway there was a connection error
So what can I do to make Docker run this basic example project?
There are some incompatibilities, but it’s mostly from using rootless mode, I think if you were not using rootless mode it would work without any changes.
Listening on port 80 is not compatible with rootless mode. It also tries to do this, which assumes a system wide docker daemon:
Thanks, that indeed solved the problem! It works in Firefox too. Now I’ll try to keep an eye open for any absolute paths that assume the file hierarchy standard with docker, and I’ll also give podman a go.
Also I did try not using rootless mode, and it still had problems. I only tested rootless mode with your changes now.