docker-compose exec python the input device is not a TTY in AWS EC2 UserData : <p>I am using EC2 UserData to bootstrap the instance.</p>

<p>TRacking log of bootstrap execution <code>/var/log/cloud-init-output.log</code>, I found that the script was stopped at :</p>

<pre><code>+ docker-compose exec web python /var/www/flask/app/db_fixtures.py
the input device is not a TTY
</code></pre>

<p>It seems like this command it's running in interactive mode, but why ? and how to force noninteractive mode for this command (docker-compose exec) ?</p>
