内蒙快三走势图技巧—官方网址22270.COM鈥擠ebian Docker 瀹夎

Docker 鏀寔浠ヤ笅鐨 内蒙快三走势图技巧—官方网址22270.COM鈥擠ebian 鐗堟湰锛

  • Buster 10
  • Stretch 9 (stable) / Raspbian Stretch

Docker Engine-Community 鍦 x86_64锛堟垨 amd64 锛塧rmhf锛屽拰 arm64 浣撶郴缁撴瀯涓婂彈鏀寔銆


鍗歌浇鏃х増鏈

Docker 鐨勬棫鐗堟湰琚О涓 docker锛宒ocker.io 鎴 docker-engine锛屽鏋滃凡瀹夎锛岃鍗歌浇瀹冧滑锛

$ sudo apt-get remove docker docker-engine docker.io containerd runc

瀹夎 Docker Engine-Community

浣跨敤 Docker 浠撳簱杩涜瀹夎

鍦ㄦ柊涓绘満涓婇娆″畨瑁 Docker Engine-Community 涔嬪墠锛岄渶瑕佽缃 Docker 浠撳簱銆内蒙快三走势图技巧—官方网址22270.COM涔嬪悗锛屾偍鍙互浠庝粨搴撳畨瑁呭拰鏇存柊 Docker銆

Raspbian 鐢ㄦ埛涓嶈兘浣跨敤姝ゆ柟娉曪紒

瀵逛簬 Raspbian锛屽皻涓嶆敮鎸佷娇鐢ㄤ粨搴撹繘琛屽畨瑁呫傛偍蹇呴』鏀逛负浣跨敤 shell 鑴氭湰鏂瑰紡銆

璁剧疆浠撳簱

鏇存柊 apt 鍖呯储寮曘

$ sudo apt-get update

瀹夎 apt 渚濊禆鍖咃紝鐢ㄤ簬閫氳繃 http 鏉ヨ幏鍙栦粨搴撱

$ sudo apt-get install \
    apt-transport-http \
    ca-certificates \
    curl \
    gnupg2 \
    software-properties-common

娣诲姞 Docker 鐨勫畼鏂 GPG 瀵嗛挜锛

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

内蒙快三走势图技巧—官方网址22270.COM9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 閫氳繃鎼滅储鎸囩汗鐨勫悗8涓瓧绗︼紝楠岃瘉鎮ㄧ幇鍦ㄦ槸鍚︽嫢鏈夊甫鏈夋寚绾圭殑瀵嗛挜銆

$ 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
浣跨敤浠ヤ笅鎸囦护璁剧疆绋冲畾鐗堜粨搴
$ sudo add-apt-repository \
   "deb [arch=amd64] http://download.docker.com/linux/debian \
  $(lsb_release -cs) \
  stable"

瀹夎 Docker Engine-Community

鏇存柊 apt 鍖呯储寮曪細

$ sudo apt-get update

瀹夎鏈鏂扮増鏈殑 Docker Engine-Community 鍜 containerd 锛屾垨鑰呰浆鍒颁笅涓姝ュ畨瑁呯壒瀹氱増鏈細

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

瑕佸畨瑁呯壒瀹氱増鏈殑 Docker Engine-Community锛岃鍦ㄤ粨搴撲腑鍒楀嚭鍙敤鐗堟湰锛岀劧鍚庨夋嫨涓绉嶅畨瑁呫傚垪鍑烘偍鐨勪粨搴撲腑鍙敤鐨勭増鏈細

$ apt-cache madison docker-ce

  docker-ce | 5:18.09.1~3-0~debian-stretch | http://download.docker.com/linux/debian stretch/stable amd64 Packages
  docker-ce | 5:18.09.0~3-0~debian-stretch | http://download.docker.com/linux/debian stretch/stable amd64 Packages
  docker-ce | 18.06.1~ce~3-0~debian        | http://download.docker.com/linux/debian stretch/stable amd64 Packages
  docker-ce | 18.06.0~ce~3-0~debian        | http://download.docker.com/linux/debian stretch/stable amd64 Packages
  ...

浣跨敤绗簩鍒椾腑鐨勭増鏈瓧绗︿覆瀹夎鐗瑰畾鐗堟湰锛屼緥濡 5:18.09.1~3-0~debian-stretch 銆

$ sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io

娴嬭瘯 Docker 鏄惁瀹夎鎴愬姛锛岃緭鍏ヤ互涓嬫寚浠わ紝鎵撳嵃鍑轰互涓嬩俊鎭垯瀹夎鎴愬姛锛

$ sudo docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete                                                                                                                                  Digest: sha256:c3b4ada4687bbaa170745b3e4dd8ac3f194ca95b2d0518b417fb47e5879d9b5f
Status: Downloaded newer image for hello-world:latest


Hello from Docker!
This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.


To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash


Share images, automate workflows, and more with a free Docker ID:
 http://hub.docker.com/


For more examples and ideas, visit:
 http://docs.docker.com/get-started/