gpt4 book ai didi

ubuntu - docker 错误 : ln: target 'ps' is not a directory

转载 作者:行者123 更新时间:2023-12-04 19:14:51 27 4
gpt4 key购买 nike

我有一个带有以下命令的 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

最佳答案

必须删除最后的 ps 是一个错字:

&& ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker

关于ubuntu - docker 错误 : ln: target 'ps' is not a directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42010731/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com