docker+dotnet 安装
安装docker:
yum -y install docker或docker-ce
如果执行后出现 No package docker-ce available 错误,
先执行下面
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
然后再执行安装yum -y install docker或docker-ce
安装成功后启动
sudo systemctl start docker
设置开机启动
sudo systemctl enable docker
查看是否运行
systemctl status docker
安装dotnet-sdk:
rpm -uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
安装SDK:
yum install dotnet-sdk-8.0
检查环境:
dotnet --info