https://github.com/uj5ghare/docker-practice
A sample repo for practicing Docker.
https://github.com/uj5ghare/docker-practice
docker docker-compose
Last synced: 2 months ago
JSON representation
A sample repo for practicing Docker.
- Host: GitHub
- URL: https://github.com/uj5ghare/docker-practice
- Owner: Uj5Ghare
- Created: 2023-11-11T05:48:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T15:47:11.000Z (over 2 years ago)
- Last Synced: 2025-02-14T11:22:23.269Z (over 1 year ago)
- Topics: docker, docker-compose
- Language: HTML
- Homepage:
- Size: 696 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-Practice
This is a simple Docker Project which performs following tasks.
- `Pull` docker `Nginx` image from `docker Hub`
- `Create` docker container with this `Nginx` image
- `Copy` all files from current directory & paste into the container
- `Run` docker container on `port 5000` with our application
## Requirements
1. `Docker`
```
yum install docker (Amazon Linux/fedora/CentOS)
apt install docker.io (Ubuntu/Debian)
```
## Installation
1. Clone the repository
```
https://github.com/Ujwal-s-Projects/Docker-Practice.git
```
2. Enter into main directory
```
cd Docker-Practice/
```
3. Create docker Image
```
docker build -t my-app:latest .
```
4. Run docker container in daemon mode/background
```
docker run -d --name my-con -p "5000:80" my-app:latest
```
5. Copy `Public IP` and paste it in the browser to access the application
```
http://:5000
```