容易centos配置docker維修

來源:互聯網
上載者:User

標籤:

首先。由於docker實施需要linux某些組件支援本身和核心特性。所以一定要確保centos版本號碼大於6,和核心版本號碼大於2.6.32-431。可輕鬆升級centos6到最新的版本號碼。

sudo yum upgrade

然後安裝cgroup

sudo yum install libcgroupservice cgconfig start     #啟動croup服務lssubsys -am

假設成功安裝,最後一個命令lssubsys -am會顯示全部子系統的掛載點


原始碼方式安裝lxc

sudo yum install gcc makewget http://sourceforge.net/projects/lxc/files/latest/download?

source=filestar -xf lxc-0.9.0.tar.gzcd lxc-0.9.0./configure --disable-capabilitiesmakesudo make installlxc-checkconfig

假設成功安裝。最後一個命令lxc-checkconfig會成功顯示核心都支援lxc的那些特性


最後安裝docker,docker在centos上的安裝採用直接下載bin包執行的方式

cd ~wget https://get.docker.io/builds/Linux/x86_64/docker-latest.tgztar -xf docker-latest.tgzusr/local/bin/docker -d

這樣docker該服務啟動,會有時間後,如何部署反docker虛容器

著作權聲明:本文博主原創文章,部落格,未經同意不得轉載。

容易centos配置docker維修

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.