Docker 安裝
  • 4,828 views,
  • 2015-05-07,
  • 上傳者: 洪國恩,
  •  0
061acd0b24a68ac5469030310d7f2e72.png有機會就來玩玩看吧~~~ 
步驟
1.
先加入 EPEL Repository
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 
加入後先更新一下!
yum update -y
2.
立馬安裝 docker 囉!!
yum -y install docker-io
3.
啟動 docker 服務,並且設為開機自動啟動
service docker start
chkconfig docker on
4.
先拉一個 centos 下來玩吧~!
docker pull centos
 
一下子就下載好囉
[root@localhost]# docker pull centos
Pulling repository centos
fd44297e2ddb: Download complete
6941bfcbbfca: Download complete
41459f052977: Download complete
Status: Downloaded newer image for centos:latest
5.
把 centos container 執行起來吧!!
docker run -i -t centos /bin/bash
 
有沒有發現彷彿進到另一台機器呢?!?~~~~ 在這邊就可以做你想做的事情囉!!
訪客如要回應,請先 登入
    資料夾 :
    標籤 :
    發表時間 :
    2015-05-07 23:49:00
    觀看數 :
    4,828
    發表人 :
    洪國恩
    部門 :
    老洪的 IT 學習系統
    QR Code :