首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Docker错误: ln:目标'ps‘不是目录

Docker错误: ln:目标'ps‘不是目录
EN

Stack Overflow用户
提问于 2017-02-03 03:27:30
回答 1查看 576关注 0票数 0

我有一个dockerfile,包含以下命令:

代码语言:javascript
代码运行次数:0
运行
复制
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 .之后,我得到错误:

代码语言:javascript
代码运行次数:0
运行
复制
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
EN

回答 1

Stack Overflow用户

发布于 2017-02-03 03:51:32

我不得不去掉最后的ps,这是一个打字错误:

代码语言:javascript
代码运行次数:0
运行
复制
&& ln -s /usr/bin/esmtp /usr/sbin/sendmaildocker
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42010731

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档