Skip to content

Instantly share code, notes, and snippets.

@shynome
Last active June 6, 2018 15:53
Show Gist options
  • Save shynome/567e4535892bea77c2df2507ebc9b18e to your computer and use it in GitHub Desktop.
Save shynome/567e4535892bea77c2df2507ebc9b18e to your computer and use it in GitHub Desktop.
Centos 快速安装 Docker

一条命令快速在 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment