Heredoc on docker exec
Remove -t
option from docker exec
command to remove attached pseudo-TTY
OR use --tty=false
:
docker exec -i mycontainer ./manage shell <<-EOF # shell commands to be executedEOF
Or else:
docker exec -i --tty=false mycontainer ./manage shell <<-EOF # shell commands to be executedEOF