Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Last active June 4, 2018 08:28
Show Gist options
  • Save ThaddeusJiang/30879db15a034ef7ac4c3e17df4847b8 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/30879db15a034ef7ac4c3e17df4847b8 to your computer and use it in GitHub Desktop.
CentOS 安装 docker

EPEL源

$ sudo rpm -Uvh http://www.gtlib.gatech.edu/pub/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

Install

$ sudo yum -y install docker-io

Start

$ service docker start
$ docker run hello-world

要求内核 3.10 以上

$ uname -r 

Install

$ sudo yum update
$ curl -fsSL https://get.docker.com/ | sh

Start

$ systemctl start docker
$ docker run hello-world
@ThaddeusJiang
Copy link
Author

能用 centos 7 就用7,别给自己找不愉快。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment