zoukankan      html  css  js  c++  java
  • Centos 6 安装Docker

    开始安装docker之旅:

      [root@localhost ~]# uname -r

      2.6.32-431.el6.x86_64

      [root@localhost ~]# cat /etc/issue

      CentOS release 6.5 (Final)

      Kernel on an m

      注意其他的源可能导致你的内核和docker的版本不一致,需要升级内核至3.x。

      安装:

      [root@localhost ~]# rpm -ivh http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

      Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

      warning: /var/tmp/rpm-tmp.JN76fI: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY

      Preparing.。。 ########################################### [100%]

      1:epel-release ########################################### [100%]

      [root@localhost ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

      [root@localhost ~]# yum -y install docker-io

      启动并设置开机自动启动

      [root@localhost ~]# service docker start

      Starting cgconfig service: [确定]

      Starting docker: [确定]

      [root@localhost ~]# chkconfig docker on

      获取cnetos镜像

      [root@localhost ~]# docker pull centos:latest

      centos:latest: The image you are pulling has been verified

      511136ea3c5a: Pull complete

      5b12ef8fd570: Pull complete

      34943839435d: Downloading [===》 ] 18.38 MB/232.5 MB 1h7m49s

    如上,完成了Centos6安装Docker的整个过程。

  • 相关阅读:
    FLASK报错,TypeError,需要valid response
    pycharm push failed
    pycharm环境艰难安装requirements.txt库文件
    git如何忽略部分不想备份的文件
    redis.exceptions.ConnectionError,目标计算机积极拒绝
    Mysql无法启动
    pymysql
    mysql数据类型
    MySQL命令(SQL语句)
    MySQL安装(windows10)
  • 原文地址:https://www.cnblogs.com/fan-yuan/p/5673317.html
Copyright © 2011-2022 走看看