1. 安装docker

1.安装依赖环境

yum -y install yum-utils device-mapper-persistent-data lvm2

2.设置镜像源

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3.安装docker
3.1

yum makecache fastyum install docker-ce docker-ce-cli containerd.io

3.2 在/etc/docker 目录下 创建daemon.json 文件

vim /etc/docker/daemon.json

内容为
{“graph”:”/data/docker-data”}

3.3创建daemon.conf 文件

mv daemon.json daemon.conf

3.4 启动docker

sudu systemctl daemon-reloadsystemctl start docker

2. 安装并运行 steamcmd 镜像

docker pull cm2network/steamcmddocker run -dit --name steamcmd --net host cm2network/steamcmd

3. 安装并运行帕鲁的docker镜像

docker exec -it steamcmd bash -c "/home/steam/steamcmd/steamcmd.sh +login anonymous +app\_update 2394010 validate +quit"docker exec -it steamcmd bash -c "/home/steam/Steam/steamapps/common/PalServer/PalServer.sh"