我需要从特定目录运行应用程序。 $ sudo docker run -P ubuntu/decomposer 'cd /local/deploy/decomposer; ./decomposer-4-15-2014' 2014/10/09 21:30:03 exec: "cd /local/deploy/decomposer; ./decomposer-4-15-2014": stat cd /local/deploy/decomposer; ./decomposer-4-15-2014: no such file or directory 该目录绝对存在,如果我通过交互式运行bash连接到docker,则可以运行以上命令。 $ sudo docker run -i -t ubuntu/decomposer /bin/bash # cd /local/deploy/decomposer; ./decomposer-4-15-2014 我可以通过指定完整路径来运行程序,但是由于预期会从当前目录启动而导致崩溃。我能做什么?
我设置了以下环境,以便在apt-get安装期间不询问任何问题/对话框: ENV DEBIAN_FRONTEND noninteractive # export DEBIAN_FRONTEND="noninteractive" 等效于: export DEBIAN_FRONTEND="noninteractive" 但是,当从Dockerfile构建映像时,在一个特定的Debian / Ubuntu软件包安装结束时(使用apt-get install),软件包配置debconf说: debconf: unable to initialize frontend: Noninteractive # export DEBIAN_FRONTEND="noninteractive" debconf: (Bareword "Debconf::FrontEnd::Noninteractive" not allowed while "strict subs" in use at (eval 35) line 3, <> line 1.) debconf: falling back to frontend: Noninteractive Subroutine BEGIN redefined …