zoukankan      html  css  js  c++  java
  • ubuntu docker的安装和使用

    Docker CE for Ubuntu

    Docker CE for Ubuntu is the best way to install the Docker platform on Ubuntu Linux environments. Simplify provisioning and setup of Docker and accelerate your time to value in building and deploying container based applications.

    Docker for Ubuntu is also available as an Enterprise Edition subscription with software, support and certification that can be installed on bare metal or cloud infrastructure.

    Features and Benefits

    • Easy installation and setup of an optimized Docker environment for Ubuntu on bare metal servers and VMs.
    • Latest Docker platform version with built in orchestration (clustering and scheduling), runtime security, container networking and volumes.
    • Available as a free download with a monthly Edge or quarterly Stable release with community support.
    • Also available for ARM 32 based platforms

    Prerequisites

    To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:

    • Yakkety 16.10
    • Xenial 16.04
    • Trusty 14.04

    1. Set up the repository

    Set up the Docker CE repository on Ubuntu. The lsb_release -cs sub-command prints the name of your Ubuntu version, like xenial or trusty.

    sudo apt-get -y install 
      apt-transport-https 
      ca-certificates 
      curl
    
    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 update
    

    2. Get Docker CE

    Install the latest version of Docker CE on Ubuntu:

    sudo apt-get -y install docker-ce
    

    3. Test your Docker CE installation

    Test your installation:

    sudo docker run hello-world
    
    • # 检查运行

      ps axf | grep docker

      13845 ? Ssl 0:00 /usr/bin/docker -d

      sudo docker version

    启动和停止docker服务

    • sudo service docker start
    • sudo service docker stop
    • sudo service docker restart
  • 相关阅读:
    HDU4452——模拟——Running Rabbits
    URAL1711——模拟——Code Names
    URAL1721——匈牙利算法——Two Sides of the Same Coin
    Codeforces Round #FF (Div. 1)——A贪心——DZY Loves Sequences
    Codeforces Round #326 (Div. 2)
    URAL 7077 Little Zu Chongzhi's Triangles(14广州I)
    Codeforces Round #325 (Div. 2)
    位运算 UEST 84 Binary Operations
    LCA UESTC 92 Journey
    Codeforces Round #324 (Div. 2)
  • 原文地址:https://www.cnblogs.com/bonelee/p/6582904.html
Copyright © 2011-2022 走看看