zoukankan      html  css  js  c++  java
  • CentOS7 安装 Docker,10分钟入门!

    本次安装是在VM虚拟机的CentOS 7环境下,仅为了学习和测试的简单安装,如果在真实生产环境还需要考虑安全策略的其他问题。

    1、Linux内核版本需要 3.10.0 以上并且是64位

    [root@localhost ~]# uname -r
    3.10.0-693.2.2.el7.x86_64
    

    2、更新软件包

    [root@localhost ~]# yum update

    3、添加yum源

    [root@localhost ~]# cat /etc/yum.repos.d/docker.repo
    [dockerrepo]
    name=Docker Repository
    baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
    enabled=1
    gpgcheck=1
    gpgkey=https://yum.dockerproject.org/gpg 

    4、安装Docker

    [root@localhost ~]# install docker-engine

    5、安装完成测试

    [root@localhost ~]# docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    ……
    ……
    ……

    完成!

  • 相关阅读:
    弹性盒子模型属性之flex-shrink
    Git----基本操作
    Git----简介
    ES6常用语法
    nginx学习
    Shell基础命令(二)
    Linux目录
    Shell基础命令(一)
    CRM之分页
    Django之ModelForm组件
  • 原文地址:https://www.cnblogs.com/tocode/p/8847631.html
Copyright © 2011-2022 走看看