文章目录:
1.CentOS7安装卸载Docker和Docker compose
2.Docker简介
3.Docker常用命令
4.Dockerfile
5.Docker Compose
前提条件
Docker支持以下的CentOS版本:
CentOS 7 (64-bit)
CentOS 6.5 (64-bit) 或更高的版本
目前,CentOS 仅发行版本中的内核支持 Docker。
Docker 运行在 CentOS 7 上,要求系统为64位、系统内核版本为 3.10 以上。
Docker 运行在 CentOS-6.5 或更高的版本的 CentOS 上,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。
查看内核:
[root@localhost ~]# uname -r
3.10.0-957.1.3.el7.x86_64
查看CentOS版本:
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
1、CentOS版本(用的root用户)
[root@local