Tag: 提示

回答“29”apt-get安装提示xorg

我使用docker把一个脚本放在一起,当这个软件包xorg询问键盘的原始国家的提示时,它会卡住,我会附上图像。 我已经尝试从我读过的其他答案这样的命令pipe道 RUN echo "29" | apt-get install -y xorg 但似乎没有工作。 我不知道如何得到这个自动回答29.任何帮助表示赞赏。 参考docker文件 FROM ubuntu:16.04 MAINTAINER Joe Astrahan <email@hey.com> VOLUME ["/var/www"] #Install Apache & Basic Software RUN apt-get update && \ apt-get install -y \ software-properties-common \ apache2 \ curl \ libcurl3 \ libcurl3-dev #Install PHP 7.0 & mod apache RUN apt-get install -y \ […]

有没有在docker构build过程中添加提示的方法?

我正在使用Docker创build一个具有SSL的特定nginx容器。 但是我不希望我的SSL文件保存在我的版本控制系统中。 所以他们被encryption。 在构builddocker容器时,我需要密码来解密文件并testing我的nginxconfiguration。 我正在使用read来获取安装脚本中的提示,但是Docker只停留在提示符上: + echo 'Please enter the password for the SSL certificates: ' + read -s SSL_PASSWORD INFO[0008] The command [/bin/sh -c /build/setup.sh && /build/cleanup.sh] returned a non-zero code: 1 是否有一些方法可以在执行docker build时获得提示? 谢谢你的帮助 :)