ubuntu 安装 Docker
1 安装 curl 工具 copy
- #apt-get update
- #apt-get install curl
2 通过脚本安装 docker copy
- #curl -fsSL get.docker.com -o get-docker.sh
- #sh get-docker.sh --mirror Aliyun
3 配置镜像加速器
- #curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://573b0ee5.m.daocloud.io
- #systemctl restart docker.service
4 测试
# docker run hello-world
补充
apt-get, 是一条 linux 命令, 适用于 deb 包管理式的操作系统, 主要用于自动从互联网的软件仓库中搜索安装升级卸载软件或操作系统
curl 是利用 URL 语法在命令行方式下工作的开源文件传输工具它被广泛应用在 Unix 多种 Linux 发行版中, 并且有 DOS 和 Win32Win64 下的移植版本
来源: http://www.bubuko.com/infodetail-2534959.html