Foreman installation on Docker: "stty: standard input: Inappropriate ioctl for device"

Looks like with

foreman-installer -v

I can fix the “stty: standard input: ...” complaint. The rest of the error message remains unchanged, though.

I’ve also tried to wrap the Dockerfile with a docker Compose setup, using the hostname: option and by setting HOSTNAME in the environment: block, without any results.