Ubuntu 16.04.4 LTS 安裝最新穩定版docker 18.09.3

[root@dockercluster01 sources.list.d]# cat /etc/issue
Ubuntu 16.04.4 LTS \n \l

[root@dockercluster01 sources.list.d]# uname -a
Linux dockercluster01 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@dockercluster01 sources.list.d]#

[root@dockercluster01 sources.list.d]# curl -sSL https://get.docker.com/ | sh

Executing docker install script, commit: 40b1b76

  • sh -c apt-get update -qq >/dev/null
  • sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
  • sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial edge" > /etc/apt/soues.list.d/docker.list
  • sh -c apt-get update -qq >/dev/null
  • sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null

    • sh -c docker version
      Client:
      Version: 18.09.3
      API version: 1.39
      Go version: go1.10.8
      Git commit: 774a1f4
      Built: Thu Feb 28 06:40:58 2019
      OS/Arch: linux/amd64
      Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.3
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 774a1f4
Built: Thu Feb 28 05:59:55 2019
OS/Arch: linux/amd64
Experimental: false
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
containers which can be used to obtain root privileges on the
docker host.
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
for more information.

DOCKER ENGINE - ENTERPRISE

Test drive additional security features by activating Docker Engine - Enterprise.

  • Leverage FIPS 140-2 validated encryption
  • Run only trusted images with digital signature enforcement

Learn more at https://dockr.ly/engine1

ACTIVATE your own engine to Docker Engine - Enterprise using:

sudo docker engine activate

[root@dockercluster01 sources.list.d]#

參考鏈接
https://docs.docker.com/install/linux/docker-ce/ubuntu/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章