Docker Logstash initialisation error

Logstash version is 5.2.1, I just pulled latest from the docker.

This is the run command

docker run -d --name logstash -v /opt/elastic/logstash/conf.d:/etc/logstash/conf.d:ro -v /opt/elastic/logstash/log:/host/var/log --net host logstash logstash -f /etc/logstash/conf.d/input.conf --debug

This is the input.conf

input { stdin { } }
output {
elasticsearch {
hosts => ["localhost:9200"]
}
stdout { codec => rubydebug }
}