skip to content
Alvin Lucillo

Run a container and map host port

/ 1 min read

💻 Tech

The command below creates a container out of some-image image in the background (--detach) and maps the container port 8080 to the host port 8282, so that you can access the container via the host port.

docker run --publish "8282:8080" --detach some-image