我有一个带有以下命令的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
答案 0 :(得分:1)
不得不删除最后拼写错误的ps:
&& ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker