Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Piping a file into docker run

Tags:

docker

pipe

People also ask

What is pipe in Dockerfile?

Docker Pipe is a way to execute each instruction in its own Docker container while persisting working directory between each of the containers. For example, you can build your application in one container, run some lint tools in another containers and finally deploy your app via CLI from another container.


cat setup.json |  docker run -i  ubuntu /bin/bash -c 'cat'

This worked for me. Remove the -t. Don't need the -a's either.