Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paramsiddharth/docker-coin
A console-based application that displays a random coin-flip.
https://github.com/paramsiddharth/docker-coin
Last synced: about 1 month ago
JSON representation
A console-based application that displays a random coin-flip.
- Host: GitHub
- URL: https://github.com/paramsiddharth/docker-coin
- Owner: paramsiddharth
- Created: 2020-11-01T06:46:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-02T09:59:29.000Z (about 4 years ago)
- Last Synced: 2024-05-22T20:22:39.525Z (7 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Coin
A console-based application that displays a random coin-flip: _Heads_ or _Tails_.## Building
Use the available `Dockerfile` to build the image.
```
docker build -t paramsiddharth/coin .
```## Execution
Once built or pulled from Docker Hub, the image can be executed using Docker-CLI.
- Pull the image from Docker Hub.
```
docker pull paramsiddharth/coin
```
- Run the image and dispose of the the container on exit.
```
docker run --rm paramsiddharth/coin
```
The same can be achieved using Docker Desktop. However, to be able to view the output, you need to run the image from command-line. Else, the output can be viewed from the image logs.## Cleanup
Delete the image from your local machine to clean-up space.
```
docker rmi paramsiddharth/coin
```Made with ❤ by Param.