ubuntu docker的安装和使用

时间:2017-03-19 23:58:17   收藏:0   阅读:1193

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

Prerequisites

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

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服务

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!