An open API service indexing awesome lists of open source software.

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.

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/)