wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum -y install ntfs-3g
yum -y install gcc dkms
yum install kernel-devel kernel-doc kernel-headers gcc\* glibc\* glibc-\* -y
yum install -y centos-release-scl -y
yum install -y devtoolset-9 -y
scl enable devtoolset-9 bash
yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
udo yum clean expire-cache
yum install -y nvidia-driver-latest-dkms
yum install -y cuda
yum install -y cuda-drivers
yum install -y nvidia-container-runtime
yum -y install nvidia-container-toolkit
vi /etc/docker/daemon.json
{
"default-runtime": "nvidia",
"runtimes": {
"nvidia": {
"path": "/usr/bin/nvidia-container-runtime",
"runtimeArgs": []
}
}
}
sudo systemctl daemon-reload
sudo systemctl restart docker
yum install unzip -y
yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum list docker-ce --showduplicates | sort -r
yum install -y docker-ce-20.10.18-3.el7
systemctl start docker
docker info
docker version
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose