1.apt-get update&&apt-get upgrade
2.查看Linux系统信息 nuame -a
root@Server:~# uname -a
Linux Server 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
3.查看Linux 系统发行版的名称 lsb_release -cs
root@Server:~# lsb_release -cs
stretch
(注190605:kali下直接显示n/a,直接进入https://download.docker.com/linux/debian/dists/wheezy/pool/stable/amd64/下载 🙂
4.进入到下载包页面 https://download.docker.com/linux/
5.下载 wget 下载连接
6.dpkg -i docker-ce_17.03.0~ce-0~debian-stretch_amd64.deb
但报错cannot access archive ‘–install’: No such file or directory
往上找:
docker-ce depends on libltdl7 (>= 2.4.6); however:
Package libltdl7 is not installed.
apt-get install libltdl7
7.运行 docker 测试是否正常: