Linux系统centos群晖NAS用docker部署
docker run -itd --name centos-test -p 20001:22 --privileged centos:centos7.9.2009 /usr/sbin/init
命令依次执行
yum install net-tools.x86_64 -y
yum install -y openssh-server
systemctl restart sshd
yum install passwd -y
passwd root
yum install -y yum-utils
下边的命令三行一起执行
-----------------------------------------------------------------
yum-config-manager \
--add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
---------------------------------------------------------------------------
yum install docker-ce docker-ce-cli containerd.io
yum list docker-ce --showduplicates | sort -r
systemctl start docker
systemctl enable docker