Linux安装Docker
今天项目需要部署到Docker上去,那么就亲自来部署一把Docker咯。
Docker有两个版本:
- 社区版(CE)
- 企业版(EE)
Docker Community Edition(CE)非常适合希望开始使用Docker并尝试使用基于容器的应用的个人开发人员和小团队。
Docker企业版(EE)专为企业开发和IT团队而设计,他们可以在生产规模上构建,发布和运行关键业务应用程序。
一、比较以下Docker的社区版和企业版的区别
我们今天就只用社区版的咯
二、Docker的安装
请先访问Docker的官网获取相关的安装信息
docker官网
三、下面以Ubuntu系统为例,准备机器卸载旧Docker
3.1 系统要求
为了安装Docker,你需要以下的系统配置。
- Artful 17.10 (Docker CE 17.11 Edge and higher only)
- Xenial 16.04 (LTS)
- Trusty 14.04 (LTS)
- Docker CE is supported on Ubuntu on x86_64, armhf, s390x (IBM Z), and ppc64le (IBM Power) architectures.
- ppc64le and s390x limitations: Packages for IBM Z and Power architectures are only available on Ubuntu Xenial and above.
3.2 准备一台Ubuntu机器
root@iZbp162mb58mqtz72o389nZ:~# lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
root@iZbp162mb58mqtz72o389nZ:~#