zoukankan      html  css  js  c++  java
  • Ubuntu 16.04 安装Docker

    1 更改apt源,更改前先对sources.list文件进行备分

    ccskun@test:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

      修改sources.list文件

    sudo gedit /etc/apt/sources.list
    deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

      更新apt源

    ccskun@test:~$ sudo apt-get update

    2 安装Docker

    ccskun@test:~$ sudo apt-get install docker.io

     安装完成后,需要重启下系统。

    sudo reboot

    3 验证

    ccskun@test:~$ sudo docker info
    Containers: 0
    Images: 0
    Storage Driver: aufs
     Root Dir: /var/lib/docker/aufs
     Backing Filesystem: extfs
     Dirs: 0
     Dirperm1 Supported: true
    Execution Driver: native-0.2
    Kernel Version: 4.4.0-22-generic
    Operating System: Ubuntu 16.04 LTS (containerized)
    CPUs: 4
    Total Memory: 3.842 GiB
    Name: test
    ID: H6MK:VMBX:ARD3:R4GN:VMVW:WHPW:AM35:JYVZ:QVYV:2L4M:AWCQ:QOPJ
    WARNING: No swap limit support
    ccskun@test:~$ 
  • 相关阅读:
    IOS使用正则表达式去掉html中的标签元素,获得纯文本
    iOS 拨打电话的三种方式总结
    iOS中Block的基础用法
    如何避免在Block里用self造成循环引用
    对MAC自带的SVN进行升级
    IOS开发之记录用户登陆状态
    Xcode7 添加PCH文件
    mysql upgrade
    Ubuntu下更改用户名和主机名
    mysql 查询的时候没有区分大小写的解决方案
  • 原文地址:https://www.cnblogs.com/ccskun/p/5534882.html
Copyright © 2011-2022 走看看