Piping a file into docker run July 9, 2023 by Tarik 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.