docker run starts a container from an image. A handful of flags cover most day-to-day use. This example serves the current folder with nginx, so you can open it at http://localhost:8080:
| |
${PWD} is the current directory in bash and PowerShell. In a Windows command prompt use %cd% instead. The cheat sheet below breaks down each part.