码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3

时间:2019-03-05 11:11:51      阅读:465      评论:0      收藏:0      [点我收藏+]

标签:mat   recommend   git   min   out   effect   The   tac   ges   

[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/

Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3

标签:mat   recommend   git   min   out   effect   The   tac   ges   

原文地址:https://blog.51cto.com/guanhaizhan/2357901

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!