Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3相关的知识,希望对你有一定的参考价值。
[[email protected] sources.list.d]# cat /etc/issue
Ubuntu 16.04.4 LTS
l
[[email protected] 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
[[email protected] sources.list.d]#
[[email protected] 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
- sh -c docker version
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
[[email protected] sources.list.d]#
参考链接
https://docs.docker.com/install/linux/docker-ce/ubuntu/
以上是关于Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3的主要内容,如果未能解决你的问题,请参考以下文章
在服务器上用U盘安装Ubuntu server 16.04 LTS
Ubuntu 16.04.4 LTS环境中php7.0使用mysqli失败,数据库无法访问
Python 2.7.12+Django 1.11.8+Ubuntu 16.04.4 LTS+Apache 2.4.33????????????