当应用程序在docker容器中运行时试图连接到亚扪人sshd

使用sbt-native-packager在基于anapsix / alpine-java:8的Docker镜像中发布应用程序。 当连接到亚扪人sshd,得到这个: $ ssh -l repl 10.20.2.10 -p 22222 Password authentication Password: Welcome to the Ammonite Repl 0.8.2 (Scala 2.11.8 Java 1.8.0_121) Connection to 10.20.2.10 closed.

和这个日志: INFO Session repl@/10.20.1.77:49204 authenticated - bash: /dev/tty: No such device or address - bash: /dev/tty: No such device or address INFO Server session created from /10.20.1.77:49204

服务在容器内的daemon用户下运行,而/dev/tty具有此权限: crw-rw-rw- 1 root root 5, 0 Apr 27 09:20 /dev/tty

如何configuration亚扪人sshd绕过这个?