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 Dec 4, 2019
1 parent 8f93c6c commit aec44d5
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions 00-Docker-Fundamentals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@

## Flow-1: Pull existing Docker Image from Docker Hub and Run it as a Container

#### Step-1: Verify Docker version and also login to Docker Hub
```
docker version
docker login
```

#### Step-2: Pull Image from Docker Hub
```
docker pull stacksimplify/dockerintro-springboot-helloworld-rest-api:1.0.0-RELEASE
```

#### Step-3: Run the downloaded Docker Image & Access the Application
- Copy the docker image name from Docker Hub
```
docker run -p 80:8080 -d stacksimplify/dockerintro-springboot-helloworld-rest-api:1.0.0-RELEASE
http://localhost/hello
```

#### Step-4: List Running Containers
```
docker ps
docker ps -a
docker ps -a -q
```

#### Step-5: Connect to Container Terminal
```
docker exec -it <container-name> /bin/sh
```

#### Step-6: Container Stop, Start
```
docker stop <container-name>
docker start <container-name>
```

#### Step-7: Remove Container
```
docker rm <container-name>
```

### Step-8: Remove Image
```
docker image <image-id>
```

## Flow-2: Create a new Docker Image, Run as Container and Push to Docker Hub
#### Step-1: Run the base Nginx container
- Access the URL http://localhost
Expand Down

0 comments on commit aec44d5

Please sign in to comment.