1. 程式人生 > >aws-ec2的redhat例項安裝docker

aws-ec2的redhat例項安裝docker

首先確認使用root身份登入

開始安裝

rpm --import "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
yum install -y yum-utils
yum-config-manager --add-repo https://packages.docker.com/1.10/yum/repo/main/centos/7
yum install docker-engine

 經過上面四步安裝完畢,下面嘗試開啟docker。

sudo service docker start
sudo service docker stop