zoukankan      html  css  js  c++  java
  • Ubuntu安装docker

    注:本次安装基于联网的方式

    来源:docker入门与精通

    一、手动安装

    1、查看内核版本

    # uname -r
    # cat /proc/version

    2、安装aufs存储的支持软件包

    # apt-get update
    # apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual

    3、添加支持https的协议源

    # apt-get update
    # apt-get install apt-transport-https ca-certificates curl software-properties-common

    4、添加gpg秘钥

    # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

    5、确认是否导入

    # apt-key fingerprint 0EBFCD88

    6、获取当前的系统版本号

    lsb_release -cs

    一般情况下:使用ubuntu系统最好使用LTS版本的,在Ubuntu16.04 LTS中代号为xenial,18.04LTS代号为bionic

    7、添加安装docker的镜像源

    注:请查看当前机器的代号

    # add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
    
    更新缓存
    #apt-get update

    8、安装docker社区版本

    # apt-get install docker-ce -y

    二、docker官方提供的脚本自动化安装

    # curl -sSL https://get.docker.com/ |sh
    安装成功后,会启动docker服务
    
    查看当前安装源存在的其他docker版本
     # apt-cache madison docker-ce

    官网:https://docs.docker.com/install/linux/docker-ce/ubuntu/

  • 相关阅读:
    爬虫大作业
    熟悉常用的HDFS操作
    数据结构化和保存
    爬取全部校园新闻
    爬取校园新闻
    Google布隆过滤器
    谷歌json和对象转换
    postgresql和postgis
    json和实体类互相转换
    Linux安装docker-compose
  • 原文地址:https://www.cnblogs.com/yjt1993/p/12516260.html
Copyright © 2011-2022 走看看