koolshare : docker run -d --name centos --net=host -i -t --privileged=true --restart=always centos /usr/sbin/init docker exec -it c83760e5d25f /bin/bash yum install glibc rpm -y yum reinstall glibc -y # 重新构建rmp库 cd /var/lib/rpm ls -l rm -rf __db.00* rpm --rebuilddb yum install wget openssh-server passwd ncurses -y # 修改为222端口 vi /etc/ssh/sshd_config systemctl start sshd.service passwd root yum clean packages