The Nautilus DevOps team is conducting application deployment tests on selected application servers. They require a nginx container deployment on Application Server 2.

Task: On Application Server 2 create a container named nginx_2 using the nginx image with the alpine tag. Ensure container is in a running state.

ssh steve@172.16.238.11
sudo docker run -d --name nginx_2 nginx:alpine

Command Breakdown:
docker run <- creates and runs a new container
-d <- runs the container in detached mode (in the background)
--name nginx_2<- names the container nginx_2
nginx:alpinen<- uses the lightweight alpine-based version of the nginx image

Note if the alpine image does not exist, it will get pulled down and then the command will create the new container - a container id will be created - for example 777f86c19e46c5f1c707197c776de2e065461cfc364861fcdddeb7470a4513fc

Ensure container is in a running state:

sudo docker ps
Expected result will be:
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS     NAMES
777f86c19e46   nginx:alpine   "/docker-entrypoint.…"   56 seconds ago   Up 55 seconds   80/tcp    nginx_2