docker container因为“std in is tty”而退出

时间:2015-06-30 05:23:03

标签: docker xvfb amazon-ecs

我们正在使用aws ecs服务启动容器并运行任务,根据任务定义成功提取图像但是当容器尝试运行任务时,由于“stdin不是tty”而退出。我们通过运行docker run {image_name}手动重现了该错误,但没有找到解决方法。这是输出:

Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension GLX
stdin: is not a tty

我们正在使用Xvfb来运行测试,这里是我们的dockerfile中的相关依赖项

# install virtual display 
RUN apt-get -qy install xvfb
RUN apt-get -qy install x11-xkb-utils
RUN apt-get -qy install xserver-xorg-core
RUN apt-get -qy install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

有没有人碰巧知道如何解决这个问题?非常感谢。

1 个答案:

答案 0 :(得分:0)

可能:当您运行容器时,是否使用-t