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
docker image on Application Server 2
.
b. Create a container named cluster
using the image you pulled.
c. Map host port 3002
to container port 80
. Please keep the container in running state.
ssh steve@stapp02
docker pull nginx:alpine
alpine: Pulling from library/nginx
9824c27679d3: Pull complete
6bc572a340ec: Pull complete
403e3f251637: Pull complete
9adfbae99cb7: Pull complete
7a8a46741e18: Pull complete
c9ebe2ff2d2c: Pull complete
a992fbc61ecc: Pull complete
cb1ff4086f82: Pull complete
Digest: sha256:42a516af16b852e33b7682d5ef8acbd5d13fe08fecadc7ed98605ba5e3b26ab8
Status: Downloaded newer image for nginx:alpine
docker.io/library/nginx:alpine
[steve@stapp02 ~]$ docker run -d --name cluster -p 3002:80 nginx:alpine
cdcdf1eb286b567f82d4124070580cf43546f28cc313961668d06812bb56481f