我有一个dockerfile,包含以下命令:
RUN mkdir build run logs frontend/dist \
&& apt-get -y install curl \
...
&& ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker ps
在运行$ docker build -f Dockerfile -t tag-name .
之后,我得到错误:
ebconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
ln: target 'ps' is not a directory
The command '/bin/sh -c mkdir build run logs frontend/dist && apt-get -y install curl && curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && apt-get install -y nodejs && npm install gulp bower && npm cache clean && npm set progress=false && npm install --prefix frontend && apt-get update && apt-get install -y esmtp && ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker ps' returned a non-zero code: 1
发布于 2017-02-02 19:51:32
我不得不去掉最后的ps,这是一个打字错误:
&& ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker
https://stackoverflow.com/questions/42010731
复制相似问题