sudo yum install -y yum-utilssudo yum-config-manager --add-repo https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.reposudo yum makecache fastsudo yum -y install docker-enginesudo service docker startsudo chkconfig docker oncut -d: -f1 /etc/group|grep dockersudo usermod -a -G docker [user]sudo reboot -f
成功後,試一下
docker pull jenkins
參考文獻:
http://www.bkjia.com/Linuxjc/1191981.html TechArticle