Lab Information
The Nautilus DevOps team is conducting application deployment tests on selected application servers. They require a nginx container deployment on Application Server 1. Complete the task with the following instructions:
On Application Server 1 create a container named nginx_1 using the nginx image with the alpine tag. Ensure container is in a running state.
Lab Solutions
β
Part 1: Exact KodeKloud Lab Guidelines (Exam-Safe Mode)
π Step 0: Login to Application Server 1
From the jump host:
ssh tony@stapp01
# Password:
Ir0nM@n
π¦ Step 1: Run nginx container (alpine tag)
docker run -d --name nginx_1 nginx:alpine
π Step 2: Verify container state (MANDATORY)
docker ps
π§ Part 2: Simple Step-by-Step Explanation (Beginner Friendly)
πͺ What are we doing?
We are:
Logging into Application Server 1
Creating a container
Making sure it keeps running
π Command Breakdown
docker run -d --name nginx_1 nginx:alpine
docker run β create + start a container
-d β detached mode (runs in background)
--name nginx_1 β exact container name required by lab
nginx:alpine β nginx image, lightweight alpine version
If -d is missing β container may stop β lab fails.
π§ Exam Memory Hook
Right server β Right name β Right image β Running
Always verify with:
docker ps
Top comments (0)