https://github.com/codebytes/docker-samples
https://github.com/codebytes/docker-samples
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codebytes/docker-samples
- Owner: codebytes
- License: mit
- Created: 2021-09-15T02:52:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-15T02:53:03.000Z (almost 4 years ago)
- Last Synced: 2025-01-22T06:48:12.609Z (5 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-samples
Samples to demonstrate the difference between CMD and Entrypoint.Clone this repository and run the following commands:
```
docker build -f .\Dockerfile-cmd . -t cmd-sample
docker run cmd-sample
docker run cmd-sample bob
``````
docker build -f .\Dockerfile-entrypoint . -t entry-sample
docker run entry-sample
docker run entry-sample hostname
``````
docker build -f .\Dockerfile-both . -t both-sample
docker run both-sample
docker run both-sample hostname
```