(1)下载代码:
curl http://download.pigsty.cc/get | bash
(2)使用init启动镜像,安装依赖:
docker run -it centos8:latest /usr/sbin/init
yum install sudo openssh-server langpacks-zh_CN
# 修改locale.conf文件
echo LANG=zh_CN.utf8 > /etc/locale.conf
source /etc/locale.conf
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
(3)
./bootstrap
./configure
./install.yml