Docker Community Forums

Share and learn in the Docker community.

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


(Duncang) #1

I want 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)