Skip to content

Commit 18b6fe5

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
Kalyan Reddy Daida
authored and
Kalyan Reddy Daida
committed
Welcome to Stack Simplify
1 parent ba2f79e commit 18b6fe5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

00-Docker-Fundamentals/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33
## Flow-1: Pull existing Docker Image from Docker Hub and Run it as a Container
44

55
## Flow-2: Create a new Docker Image, Run as Container and Push to Docker Hub
6-
### Run the base Nginx container
6+
### Step-1: Run the base Nginx container
77
- Access the URL http://localhost
88
```
99
docker run --name mynginxdefault -p 80:80 -d nginx
1010
docker ps
1111
```
1212

13-
### Create Dockerfile and copy our customized index.html
13+
### Step-2: Create Dockerfile and copy our customized index.html
1414
```
1515
FROM nginx
1616
COPY index.html /usr/share/nginx/html
1717
```
18-
- Build Docker Image & run it
18+
19+
### Step-3: Build Docker Image & run it
1920
```
2021
docker build -t stacksimplify/mynginx_image1:v1 .
2122
docker run --name mynginx1 -p 80:80 -d stacksimplify/mynginx_image1:v1
2223
```
23-
- Tag & push the Docker image to docker hub
24+
25+
### Step-4: Tag & push the Docker image to docker hub
2426
```
2527
docker images
2628
docker tag stacksimplify/mynginx_image1:v1 stacksimplify/mynginx_image1:v1-release
2729
docker push stacksimplify/mynginx_image1:v1-release
2830
```
29-
- Verify the same on docker hub
31+
### Step-5: Verify the same on docker hub
32+
- Login to docker hub
33+
- Url: https://hub.docker.com/repositories

0 commit comments

Comments
 (0)