Skip to content

Latest commit

 

History

History

docker-ports-mapping

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Docker Ports Mapping

Problem

The Nautilus DevOps team is planning to host an application on a nginx-based container. There are number of tickets already been created for similar tasks. One of the tickets has been assigned to set up a nginx container on Application Server 2 in Stratos Datacenter. Please perform the task as per details mentioned below:

a. Pull nginx:alpine-perl docker image on Application Server 2.

b. Create a container named games using the image you pulled.

c. Map host port 3002 to container port 80. Please keep the container in running state.

Solution

docker run -p 3002:80 -d --name games nginx:alpine-perl

curl localhost:3002