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

    1、Docker requires a 64-bit installation regardless of your Ubuntu version. Additionally, your kernel must be 3.10 at minimum.

    2、To check your current kernel version,  uname -r 

    3、Note: If you previously installed Docker using APT, make sure you update your APT sources to the new Docker repository.

        1、Update your apt sources

        2、Update package information, ensure that APT works with the https method, and that CA certificates are installed.

        3、sudo apt-get install apt-transport-https ca-certificates

        4、sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

        5、Open the /etc/apt/sources.list.d/docker.list file in your favorite editor.  If the file doesn’t exist, create it.

        6、Remove any existing entries.   Add an entry for ubuntu16.04   deb https://apt.dockerproject.org/repo ubuntu-xenial main 

        7、Save and close the /etc/apt/sources.list.d/docker.list file.

        8、apt-get update;apt-get purge lxc-docker;apt-cache policy docker-engine

    4、For Ubuntu Trusty, Wily, and Xenial, it’s recommended to install the linux-image-extra kernel package. The linux-image-extrapackage allows you use the aufs storage driver.

        1、sudo apt-get install linux-image-extra-$(uname -r)

    5、sudo apt-get install docker-engine

    6、sudo service docker start

    7、sudo docker run hello-world

    8、This command downloads a test image and runs it in a container. When the container runs, it prints an informational message. Then, it exits.

  • 相关阅读:
    一个简单的PHP登录演示(SESSION版 与 COOKIE版)
    web系统之session劫持解决
    CKFinder 1.4.3 任意文件上传漏洞
    linux服务器磁盘扩容的方法
    Linux下lvm在线扩容步骤
    Centos7使用LVM扩容磁盘(测试成功)
    CentOS7下利用init.d启动脚本实现tomcat开机自启动
    Linux tomcat安装详解(未完)
    linux下 目录(扩容)挂载磁盘
    Linux下环境变量设置
  • 原文地址:https://www.cnblogs.com/litifeng/p/5774093.html
Copyright © 2011-2022 走看看