I am trying to run a docker example following this documentation
This is my command:
docker run -d -p 80:80 --name webserver nginx
If you are the port i not in use, try restarting docker. That usually works for me.