Skip to content

Commit ac32ee5

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
Kalyan Reddy Daida
authored and
Kalyan Reddy Daida
committed
Welcome to Stack Simplify
1 parent d8be363 commit ac32ee5

File tree

1 file changed

+8
-1
lines changed
  • 04-Build-new-Docker-Image-and-Run-and-Push-to-DockerHub

1 file changed

+8
-1
lines changed

04-Build-new-Docker-Image-and-Run-and-Push-to-DockerHub/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Flow-2: Create a new Docker Image, Run as Container and Push to Docker Hub
22

3+
## Pre-requisite Step
4+
- Create your Docker hub account.
5+
- https://hub.docker.com/
6+
- **Important Note**: In the below listed commands wherever you see **stacksimplify** you can replace with your docker hub account id.
7+
8+
39
## Step-1: Run the base Nginx container
410
- Access the URL http://localhost
511
```
@@ -16,6 +22,7 @@ COPY index.html /usr/share/nginx/html
1622

1723
## Step-3: Build Docker Image & run it
1824
```
25+
docker build -t <your-docker-hub-id>/mynginx_image1:v1 .
1926
docker build -t stacksimplify/mynginx_image1:v1 .
2027
docker run --name mynginx1 -p 80:80 -d stacksimplify/mynginx_image1:v1
2128
```
@@ -27,5 +34,5 @@ docker tag stacksimplify/mynginx_image1:v1 stacksimplify/mynginx_image1:v1-relea
2734
docker push stacksimplify/mynginx_image1:v1-release
2835
```
2936
## Step-5: Verify the same on docker hub
30-
- Login to docker hub
37+
- Login to docker hub and verify the image we have pushed
3138
- Url: https://hub.docker.com/repositories

0 commit comments

Comments
 (0)