Docker as a monad