A toy example wrapping tail -n 5
This is a toy example of one way to run several dockerized examples.
It makes uses of two toy docker images
Then links then together.
- Create a data folder (here we assume the fullpath to be /tmp/mydata)
- Add a text file with the numbers 1 to 20 one per line as one_to_twenty.txt
- docker run -v /tmp/mydata:/data brenninc/top10 /data/one_to_twenty.txt /data/one_to_ten.txt
- docker run -v /tmp/mydata:/data brenninc/last5 /data/one_to_ten.txt /data/six_to_ten.txt
- ls /tmp/mydata
Docker Pull Command