使用dockerfile文件向centos7中安装ssh服务时总是报错
docker吧
全部回复
仅看楼主
level 2
dockerfile文件:
FROM centos
MAINTAINER Yi.Ma <[email protected]>
RUN yum -y update
RUN yum install -y passwd openssh-server openssh-clients initscripts net-tool
RUN yum install python-setuptools -y
RUN easy_install supervisor
RUN echo 'root:root' | chpasswd
RUN /usr/sbin/sshd-keygen
EXPOSE 22
CMD /usr/sbin/sshd -D
执行 docker build ‐t yi/centos7‐ssh .命令时总是报错
报错信息如下:
No match for argument: net-tool
Error: Unable to find a match
The command '/bin/sh -c yum install -y passwd openssh-server openssh-clients initscripts net-tool' returned a non-zero code: 1
2019年10月11日 12点10分 1
level 2
docker新手,求大佬帮忙看下,卡了我好久了
2019年10月11日 13点10分 2
level 3
那就用commit方式
2019年10月11日 22点10分 3
先运行一个容器,在容器里yum install...,然后用 docker commit <容器ID> tag
2019年10月11日 22点10分
level 1
你现在这个问题解决了吗 我正在学习大觅网 也遇到了这个问题 想请教下你
2019年11月03日 03点11分 4
你是青鸟的吧
2020年06月01日 15点06分
level 1
把 net-tool改成 net-tools
2020年03月29日 14点03分 5
[大拇指]
2020年04月29日 07点04分
level 1
执行 docker build ‐t yi/centos7‐ssh .命令时总是报
报错信息如下
No match for argument: net-tool
Error: Unable to find a match
The command '/bin/sh -c yum install -y passwd openssh-server openssh-clients initscripts net-tool' returned a non-zero code: 1
怎么把 net-tool改成 net-tools
2021年04月08日 04点04分 6
1