Pull a container base image
All containers are created from container images. Microsoft offers several starter images, called base images, to choose from. This procedure pulls (downloads and installs) the lightweight Nano Server base image.
Step 1:
Run a Windows container using Windows Admin Center
You can use Windows Admin Center to run your containers locally. Specifically, you use the Containers extension of your Windows Admin Center instance to run the containers. First, open the container host you want to manage, and in the Tools pane, select the Containers extension.
Then, select the Images tab inside the Container extension under Container Host.

Step 2:
If your host doesn't have a base container image, select the Pull option to open the Pull Container Image settings:

Step 3:
In the Pull Container Image settings, provide the image URL and the tag. If you aren't certain which image to pull, Windows Admin Center provides a list of common images from Microsoft.
You can also provide the credentials to pull an image from a private repository. Once you fill out the necessary information, click Pull. Windows Admin Center will start the pull process on the container host. After the download is complete, you should see the new image on the Images tab.

On the Run menu, set up the configuration for the container, such as the container name, the isolation type, which ports to publish, and memory and CPU allocation.
Step 4: In Publish port(s) enter: 80:5001
We need to specify the port.
Note: Publish or expose port (-p, --expose)
docker run -p 127.0.0.1:80:8080/tcp ubuntu bash
This binds port 8080 of the container to TCP port 80 on 127.0.0.1 of the host machine.
Step 5: Click 'Add' to add additional options.
Step 6: Type: -d
Note: Run in detached mode
This is great so far, but your sample application is a web server and you shouldn't have to have your terminal connected to the container. Docker can run your container in detached mode in the background. To do this, you can use the --detach or -d for short. Docker will start your container the same as before but this time will detach from the container and return you to the terminal prompt.
docker run -d -p 8080:8080 docker-gs-ping
d75e61fcad1e0c0eca69a3f767be6ba28a66625ce4dc42201a8a323e8313c14e
Docker started your container in the background and printed the container ID on the terminal.
Step 7: Click Run
Once you have finished the configuration for the container, click Run. You can see the status of the running containers on the Containers tab:

Reference:
https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/run-your-first- container
https://docs.docker.com/engine/reference/commandline/run/