Docker 安装 CentOS
Last updated
Was this helpful?
Last updated
Was this helpful?
CentOS(Community Enterprise Operating System)是 Linux 发行版之一,它是来自于 Red Hat Enterprise Linux(RHEL) 依照开放源代码规定发布的源代码所编译而成。由于出自同样的源代码,因此有些要求高度稳定性的服务器以 CentOS 替代商业版的 Red Hat Enterprise Linux 使用。
访问 CentOS 镜像库地址:https://hub.docker.com/_/centos?tab=tags&page=1。
可以通过 Sort by 查看其他版本的 CentOS 。默认是最新版本 centos:latest 。
你也可以在下拉列表中找到其他你想要的版本:
使用以下命令来查看是否已安装了 centos7:
最后我们可以通过 docker ps 命令查看容器的运行信息: