Manually generate the first SSL/TLS certificate

I am using Docker installation here PeerTube documentation

My Certificate Authority fails .well-known/acme-challenge while running the manual certificate generation

docker run -it --rm --name certbot -p 80:80 -v « $(pwd)/docker-volume/certbot/conf:/etc/letsencrypt » certbot/certbot certonly --standalone

Is this simply because my docker is not actually hosted on this domain and inside my container on my desktop?

Has anyone set this up recently?

To obtain a certificate from letsencrypt, your domain must point to your server, and your server must be accessible from the internet. Otherwise, anyone could get false certificates, and use them for phising (or other kind of attacks).