Run inline command with pipe in docker container

Viewed 13460

I want to run a set of commands in a docker container, e.g.:

docker run -i <image> cmd1 | cmd2

Both cmd1 and cmd2 should be run inside the container.

Is it possible? If not, what are the alternatives?

0 Answers
Related