VMware 14+ubuntu-16.04.7-desktop-amd64 Xshell 6执行 docker build ‐t yi/centos7‐ssh .命令时总是报错报错信息如下
anmiao@yanmiao-virtual-machine:~/envdm/centos7$ sudo docker build -t yi/centos7-ssh .
Sending build context to Docker daemon 3.584kB
Step 1/10 : FROM centos
---> 300e315adb2f
Step 2/10 : MAINTAINER Yi.Ma <findlymw@gmail.com>
---> Using cache
---> 48a2fb0416e1
Step 3/10 : RUN yum -y update
---> Using cache
---> acdd2a1c0155
Step 4/10 : RUN yum install -y passwd openssh-server openssh-clients initscripts net-tool
---> Running in dbd5295ddaae
Last metadata expiration check: 22:42:41 ago on Wed Apr 7 15:32:54 2021.
No match for argument: net-tool
Error: Unable to find a match: net-tool
The command '/bin/sh -c yum install -y passwd openssh-server openssh-clients initscripts net-tool' returned a non-zero code: 1