Skip to content

Commit

Permalink
Welcome to Stack Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalyan Reddy Daida authored and Kalyan Reddy Daida committed Feb 15, 2020
1 parent d8be363 commit ac32ee5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Flow-2: Create a new Docker Image, Run as Container and Push to Docker Hub

## Pre-requisite Step
- Create your Docker hub account.
- https://hub.docker.com/
- **Important Note**: In the below listed commands wherever you see **stacksimplify** you can replace with your docker hub account id.


## Step-1: Run the base Nginx container
- Access the URL http://localhost
```
Expand All @@ -16,6 +22,7 @@ COPY index.html /usr/share/nginx/html

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

0 comments on commit ac32ee5

Please sign in to comment.