docker run -p8000:8000 code example Example: docker run name docker run --name <container name> -dp <local port>:<container port> <image>