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

    1.首次安装Docker CE之前,需要先设置Docker仓库

    $ sudo apt-get update

    2.允许apt通过Https更新

    $ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

    3.添加Docker的官方GPG密钥,

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

    通过搜索密钥的最后8个字符,确认您现在已经拥有指纹 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 的密钥。

    $ sudo apt-key fingerprint 0EBFCD88

    使用以下命令来设置 stable 的仓库。即使你想从 edge __ 或 __test 仓库安装构建,也总是需要 stable 的仓库。要添加 edge __ 或 __test 仓库,请在下面的命令中在单词stable之后添加edge或test(或两者)

    $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

    4.开始安装Docker CE

    $ sudo apt-get install docker-ce

    5.选择版本

    $ apt-cache madison docker-ce

    6.安装选择的版本

    $ sudo apt-get install docker-ce=VERSION

    7.通过运行hello-world 镜像验证Docker CE是否正确安装

    $ sudo docker run hello-world

    8.查看版本

    $ sudo docker version 

  • 相关阅读:
    模板语言的作用及实例
    模板语言
    轮播图实例
    render,render_to_redponse,locals,redirect重定向
    setting中三个重要参数
    python中的Celery基本使用
    python中的Redis基本使用
    DRF之JWT认证
    DRF之过滤排序分页异常处理
    DRF之权限和频率限制
  • 原文地址:https://www.cnblogs.com/yaoczz/p/11047041.html
Copyright © 2011-2022 走看看