Step 1: Choose a different port for your Docker container using the -p flag when running docker run. e.g., docker run -p 8080:80 nginx to map port 8080 on the host to port 80 in the container. You can also stop the container using the conflicting port or change the port mapping of the existing container.