I am trying to run a docker example following this documentation
This is my command:
docker run -d -p 80:80 --name webserver nginx
<
Try restarting the docker service. It works 99% of the time.
service docker restart
If that didn't work as expected, try restarting your pc and then restarting the docker service using above command.
If none of the above worked try changing the exposed port to another unused port that should work.
docker run -d -p 81:80 --name webserver nginx