【koolshare】docker centos ssh等服务命令记录
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
本文来自博客园,作者:一支小白,转载请注明原文链接:https://www.cnblogs.com/startnow/p/14983717.html