https://github.com/oresoftware/docker-pipeline-example
A simple shell pipeline `docker run a | docker run b` for experimenting with docker stdio
https://github.com/oresoftware/docker-pipeline-example
bash docker pipeline pipes shell
Last synced: 3 months ago
JSON representation
A simple shell pipeline `docker run a | docker run b` for experimenting with docker stdio
- Host: GitHub
- URL: https://github.com/oresoftware/docker-pipeline-example
- Owner: ORESoftware
- Created: 2019-07-21T18:35:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T07:43:47.000Z (about 6 years ago)
- Last Synced: 2025-05-18T16:54:40.904Z (5 months ago)
- Topics: bash, docker, pipeline, pipes, shell
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Example of shell pipelines with docker
To run the example:
```bash
set -e;
clone_url='https://github.com/ORESoftware/docker-pipeline-example.git'
git clone "$clone_url" dpe && cd dpe
./run.sh```
Basically we just want a shell pipeline to toy with (maybe we want to see about perf degradation when using
stdio and docker).```bash
docker run --rm -ti 'dpe-producer' | docker run --rm -i 'dpe-consumer'
```
## To kill the pipeline
To kill it you seem to need to use ctrl-d before ctrl-c.
It should kill the producer first, which should then begin the demise of the consumer.