https://github.com/ooloth/docker-hello-world
Simple hello world using Docker.
https://github.com/ooloth/docker-hello-world
Last synced: about 2 months ago
JSON representation
Simple hello world using Docker.
- Host: GitHub
- URL: https://github.com/ooloth/docker-hello-world
- Owner: ooloth
- Created: 2023-10-27T02:52:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T03:30:38.000Z (over 2 years ago)
- Last Synced: 2025-01-18T11:23:03.085Z (about 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-hello-world
A simple "hello world" app using Docker.
## Build
```
docker build -t hello-world .
```
## Run
```
docker run -p 8080:8080 hello-world
```
## Test
```
curl http://localhost:8080
```
## Push
```
docker tag hello-world:latest /hello-world:latest
docker push /hello-world:latest
```
## Pull
```
docker pull /hello-world:latest
```
## Run from Docker Hub
```
docker run -p 8080:8080 /hello-world:latest
```
## Test from Docker Hub
```
curl http://localhost:8080
```
## Clean up
```
docker rmi hello-world
docker rmi /hello-world
```
## References
* [Docker Hub](https://hub.docker.com/)
* [Dockerfile reference](https://docs.docker.com/engine/reference/builder/)
* [Dockerfile best practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/)