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 1 in Stratos Datacenter . Please perform the task as per details mentioned below:
a. Pull nginx:stable docker image on Application Server 1 .
b. Create a container named cluster using the image you pulled.
c. Map host port 8089 to container port 80 . Please keep the container in running state.
Connect to App Server 1
ssh tony@stapp01 sudo -i
Enter fullscreen mode
Exit fullscreen mode
Password for tony: Ir0nM@n
Pull the nginx:stable Image
docker pull nginx:stable
Enter fullscreen mode
Exit fullscreen mode
The image was pulled successfully with digest sha256:a7675fcee220f59b4a99f7098c06a0d5d999c2c0ee37c0211efb780536e5cb20 .
Verify the image:
docker images | grep nginx
Enter fullscreen mode
Exit fullscreen mode
Output:
nginx stable 2cbc7a375718 6 days…