[Docker] Docker CE - Ubuntu16.04



Docker介紹
  • 版本
    •  Docker Engine 現在改為 Docker CE (Community Edition)
    •  Docker Data Center 現在改為 Docker EE (Enterprise Edition
 

step #0. 環境
Ubuntu 16.04

Uninstall old versions
$ sudo apt-get remove docker docker-engine docker.io


Recommended extra packages for Trusty 14.04
$ sudo apt-get update

$ sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual

step #1. Install Docker CE

Update the apt package index:
$ sudo apt-get update
Install packages to allow apt to use a repository over HTTPS:
$ sudo apt-get install \
            apt-transport-https \
            ca-certificates \
            curl \
            software-properties-common

Add Docker’s official GPG key:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Verify that you now have the key with the fingerprint 

$ sudo apt-key fingerprint 0EBFCD88

pub  4096R/0EBFCD88 2017-02-22
        Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid                              Docker Release (CE deb) <docker@docker.com>
sub  4096R/F273FCD8 2017-02-22

amd64:

$ sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu\
    $(lsb_release -cs) \
    stable"

INSTALL DOCKER CE


Update the apt package index.

$ sudo apt-get update



$ sudo apt-get install docker-ce

Verify that Docker CE is installed correctly by running the hello-world image.

$ sudo docker run hello-world

Uninstall Docker CE


    $ sudo apt-get purge docker-ce
 




留言

  1. The Emperor Casino: The Video Poker Games
    What are the best online casinos? · Play the top rated slots & table games at the Emperor Casino! · Play the most popular 제왕 카지노 slots from the best games at Ignition Casino! · Have

    回覆刪除

張貼留言

這個網誌中的熱門文章

[TechHack-1] 頭昏腦脹到什麼 FP16 / FP32 / FP64 ?