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:~$ 
  • 相关阅读:
    java后台保存JSON
    查询树节点及其所有上级节点sql语句
    查询树节点及其所有下级节点sql语句
    Hibernate查询机制使用原生sql语法查询
    SSH框架通过poi导出excel表格
    java通过poi导入excel数据
    各类型日期date的相互转化
    推荐一下我喜欢的软件
    青岛市赛总结——远征石油大学
    My learn of git
  • 原文地址:https://www.cnblogs.com/ccskun/p/5534882.html
Copyright © 2011-2022 走看看