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
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