docker / getting-started

Getting started with Docker
Apache License 2.0
2.91k stars 6.4k forks source link

Troubleshooting Ports are not available error #400

Open DecimalTurn opened 1 year ago

DecimalTurn commented 1 year ago

Added the following to the README :

Troubleshooting:

If you run into an error saying "Ports are not available", it might be because port 80 is already in use on your computer. In that case, you can change the first port number in "80:80" to an available port, eg.: "81:80". Then you'll need to access the container via http://localhost:81/.

jai-dewani commented 4 months ago

This is something I faced as well while setting up the docker/getting-started container. Adding this sort of information would be useful, since this is an introduction documentation for docker.

CC: @mikesir87