一条命令快速在 CentOS 上安装 Docker
curl https://gist.github.com/shynome/567e4535892bea77c2df2507ebc9b18e/raw/307e15382d4d8d2bf31d1e9232b95129cd3900e3/install.sh | sh
#!/bin/sh | |
set -e | |
curl https://get.docker.com | sh | |
# 把 docker 设为开机自启, 免得服务器重启了docker服务没起来得手动启动 | |
systemctl enable docker | |
# 安装 nfs 套件, 挂载 nfs 目录时会用到 | |
yum install nfs-utils -y |