Skip to content

Commit 8f93c6c

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

00-Docker-Fundamentals/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +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-
### Step-1: 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-
### Step-2: 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
```
1818

19-
### Step-3: Build Docker Image & run it
19+
#### Step-3: Build Docker Image & run it
2020
```
2121
docker build -t stacksimplify/mynginx_image1:v1 .
2222
docker run --name mynginx1 -p 80:80 -d stacksimplify/mynginx_image1:v1
2323
```
2424

25-
### Step-4: Tag & push the Docker image to docker hub
25+
#### Step-4: Tag & push the Docker image to docker hub
2626
```
2727
docker images
2828
docker tag stacksimplify/mynginx_image1:v1 stacksimplify/mynginx_image1:v1-release
2929
docker push stacksimplify/mynginx_image1:v1-release
3030
```
31-
### Step-5: Verify the same on docker hub
31+
#### Step-5: Verify the same on docker hub
3232
- Login to docker hub
3333
- Url: https://hub.docker.com/repositories

0 commit comments

Comments
 (0)