How to create a pipeline of docker containers by mounting host fifo(s)

170 views
Skip to first unread message

Duncan Gordon

unread,
Mar 15, 2016, 1:58:27 PM3/15/16
to docker-dev
As I understand it, I cannot achieve the following without delving under the hood. I was hoping that someone could orient me in the most efficient direction.

I would like to chain docker containers together like in a traditional unix pipeline. While it is possible to do this directly by chaining 'docker run' commands, this is unfavourable as the I/O will go via the docker HTTP API. I can use a fifo in exactly the same way as a traditional unix pipe for this purpose (it will provide proper backpressure, rather than filling disk or memory). How might I mount a fifo from the host into my containers such that it is the exact same kernel object in both? (so that it is as fast as a normal unix pipeline)

Many thanks!

-Duncan

Bharat Bhushan

unread,
Mar 23, 2016, 1:35:30 AM3/23/16
to docker-dev

Duncan Gordon

unread,
Mar 24, 2016, 7:48:12 AM3/24/16
to docker-dev
Wrong meaning of "pipeline" - I was referring to unix pipes.
Reply all
Reply to author
Forward
0 new messages