Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooulad/hello-docker
🚨say hello to docker
https://github.com/pooulad/hello-docker
docker
Last synced: about 4 hours ago
JSON representation
🚨say hello to docker
- Host: GitHub
- URL: https://github.com/pooulad/hello-docker
- Owner: pooulad
- License: mit
- Created: 2023-11-02T10:32:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-03T15:14:37.000Z (about 1 year ago)
- Last Synced: 2023-11-04T13:30:40.708Z (about 1 year ago)
- Topics: docker
- Language: HTML
- Homepage:
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-docker
Say hello to docker
## What you need? :
Just make sure you have nginx in your images
Download nginx image:
```bash
sudo docker pull nginx
```## Build image :
First in the root of project run:
```bash
sudo docker build -t html-server-image:v1 .
```## How to run :
Now its time to create your container:
```bash
sudo docker run --rm -d -p 8080:80 html-server-image:v1
```Open your browser and open -> localhost:8080/app.html
You should see this page :![Screenshot from 2023-11-02 14-18-23](https://github.com/pooulad/hello-docker/assets/86445458/557e0bca-1c0c-4866-8be7-0e6fd2852389)
Or you can curl in terminal:
```bash
curl localhost:8080/app.html
```
![image](https://github.com/pooulad/hello-docker/assets/86445458/3d25394e-128e-4d35-ae95-21c9e51b8eee)Congratulations :) you did it.
If you enjoy it star the repo in github or in docker hub
Docker hub link : https://hub.docker.com/r/pooulad/html-server-image