2015年1月9日 星期五

Install Docker on CentOS 6.4


  1. 安裝 EPEL repository repository
    #  wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
    # rpm -ivh epel-release-6-8.noarch.rpm
  2. 執行 yum update 出現錯誤訊息:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
    # yum update
    Loaded plugins: fastestmirror, security
    Determining fastest mirrors
    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
  3. 修改「/etc/yum.repos.d/epel.repo」設定
    將 baseurl 前面的 # 拿掉,mirrirlist 前面加上 #
    baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
  4. 安裝 Docker
    # yum install docker-io
  5. 啟動 Docker
    # service docker start
  6. 設定開機時自動啟動 Docker
    # chkconfig docker on
參考資料:

沒有留言:

張貼留言