【1】CentOS 6 安裝 docker-io
- 安裝鏡像源
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum clean all && yum makecache
yum install -y docker-io
- 啟動(dòng)鹿榜,開機(jī)自啟動(dòng)
service docker start
chkconfig docker on
- 測試安裝結(jié)果
docker run hello-world
- 創(chuàng)建 docker 用戶組耕蝉,讓普通用戶可以使用docker
groupadd docker
usermod -aG docker felix
/etc/init.d/docker restart
su - felix
docker run hello-world