zoukankan      html  css  js  c++  java
  • Ubuntu16.04安装docker

    环境

    Ubuntu16.04

    介绍

    Docker CE : 社区免费版
    Docker EE : 企业收费版

    安装Docker

    • 官方地址(需自备梯子 不然速度感人)
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    sudo apt-get -y update
    sudo apt-get -y install docker-ce
    
    • 阿里云镜像源站
    curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
    sudo apt-get -y update
    sudo apt-get -y install docker-ce
    

    若提示缺少依赖,请安装以下

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

    查看信息

    Y430:~$ sudo docker version
    
    Client:
     Version:	18.03.0-ce
     API version:	1.37
     Go version:	go1.9.4
     Git commit:	0520e24
     Built:	Wed Mar 21 23:10:01 2018
     OS/Arch:	linux/amd64
     Experimental:	false
     Orchestrator:	swarm
    
    Server:
     Engine:
      Version:	18.03.0-ce
      API version:	1.37 (minimum version 1.12)
      Go version:	go1.9.4
      Git commit:	0520e24
      Built:	Wed Mar 21 23:08:31 2018
      OS/Arch:	linux/amd64
      Experimental:	false
    
    

    更换国内仓库镜像

    更多仓库镜像请查看 参考资料

    修改配置文件/etc/docker/daemon.json
    增加以下内容,然后重启 Docker 以使配置生效
    {
      "registry-mirrors": ["https://registry.docker-cn.com"]
    }
    

    参考资料

    本文来自博客园,作者:ThinkerBlog,转载请注明原文链接:https://www.cnblogs.com/liuyublog/p/9099410.html

  • 相关阅读:
    [LeetCode]3Sum Closest
    [LeetCode]3Sum
    [LeetCode]Roman to Integer
    [LeetCode]Integer to Roman
    [LeetCode]Container With Most Water
    [LeetCode]Palindrome Number
    [LeetCode]String to Integer (atoi)
    [LeetCode]Reverse Integer
    Elasticserch与Elasticsearch_dsl用法
    es 查询更新操作
  • 原文地址:https://www.cnblogs.com/liuyublog/p/9099410.html
Copyright © 2011-2022 走看看