zoukankan      html  css  js  c++  java
  • CentOS6.4安装Docker

    首先,须要安装EPEL仓库

    # wget http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
    # rpm -ivh epel-release-6-8.noarch.rpm

    安装docker-io

    # yum -y install docker-io

    启动docker服务

    # /etc/init.d/docker start
    Starting cgconfig service:                                 [  OK  ]
    Starting docker:                                           [  OK  ]

    设置docker服务开机启动

    # chkconfig docker on

    測试是否正常工作

    # docker run -i -t fedora /bin/bash
    Unable to find image 'fedora' locally
    fedora:latest: The image you are pulling has been verified
    
    bfe0bb6667e4: Downloading  6.48 MB/259.4 MB 51m9s
    511136ea3c5a: Already exists 
    00a0c78eeb6d: Already exists 

    下载中,因为网速原因,等待比較长一段时间后

    # docker run -i -t fedora /bin/bash
    Unable to find image 'fedora' locally
    fedora:latest: The image you are pulling has been verified
    
    bfe0bb6667e4: Pull complete 
    511136ea3c5a: Already exists 
    00a0c78eeb6d: Already exists 
    Status: Downloaded newer image for fedora:latest
    bash-4.3#

    能够看出我们已经执行在docker容器中了

    能够像Fedora一样操作了

  • 相关阅读:
    Python学习笔记9:变量作用域和列表
    Python文摘:argmin/argmax 与 idxmin/idxmax
    SQL学习笔记8
    SQL学习笔记7
    SQL学习笔记6
    SQL学习笔记5
    SQL文摘:sql(join中on与where区别)
    SQL学习笔记4
    SQL学习笔记3
    机器学习基石第三讲 Types of Learning
  • 原文地址:https://www.cnblogs.com/yjbjingcha/p/6956515.html
Copyright © 2011-2022 走看看