1.centos系统简简介及官方镜像使用
Centos和Fedora都是基于Redhat的Linux发行版。Centos是目前企业级服务器的常用操作系统;Fedora则主要面向个人的桌面用户。
Centos(Community Enterprise Operating System,社区企业级操作系统)基于Red Hat Enterprise Linux源代码编译而成。由于Centos与RedHat Linux源于相同的代码基础,所以很多成本敏感且需要高稳定性的公司就使用CentOS来代替商业版Red Hat Enterprise Linux。CentOS自身不包含闭源软件。
使用–filter=stars=50 搜索标星至少为50以上的CentOS相关镜像:
$ docker search --filter=stars=50 centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official build of CentOS. 6183 [OK]
ansible/centos7-ansible Ansible on Centos7 132 [OK]
consol/centos-xfce-vnc Centos container with "headless" VNC session… 119 [OK]
jdeathe/centos-ssh OpenSSH / Supervisor / EPEL/IUS/SCL Repos - … 115 [OK]
centos/systemd systemd enabled base container. 86 [OK]
centos/mysql-57-centos7 MySQL 5.7 SQL database server 83
imagine10255/centos6-lnmp-php56 centos6-lnmp-php56 58 [OK]
使用docker run 直接运行最新的CentOS镜像,并登录bash:
$ docker run -it centos bash
[root@650a5aef8419 /]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
CentOS的相关资源如下:
CentOS官网:https:// https://www.centos.org/
CentOS官方镜像:https://hub.docker.com/_/centos/