Ubuntu 16.04.4 LTS 安装最新稳定版docker 18.09.3
# cat /etc/issueUbuntu 16.04.4 LTS \n \l
# 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
#
# 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 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
#
参考链接
https://docs.docker.com/install/linux/docker-ce/ubuntu/
页:
[1]