Docker 使用 CentOS 镜像

使用 docker run 直接运行 CentOS 7 镜像,并登录 bash

复制代码
C:\Users\yhu>docker run -it centos:centos7 bash
Unable to find image 'centos:centos7' locally
centos7: Pulling from library/centos
2d473b07cdd5: Pull complete
Digest: sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4
Status: Downloaded newer image for centos:centos7
[root@3ceb808f5a6c /]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@3ceb808f5a6c /]#

从镜像的发布日期来看,CentOS 的版本已经有多年没有更新了。

对于操作系统来看,这可能会导致很多潜在的安全性问题。

针对上面的情况,不建议在服务器生产环境中继续使用了。

Docker 使用 CentOS 镜像 - 系统容器 - iSharkFly使用 docker run 直接运行 CentOS 7 镜像,并登录 bash。 C:\Users\yhu>docker run -it centos:centos7 bashUnable to find image 'centos:centos7' locallycentos7: Pulling from library/centos2d473b07cdd5: Pull completeDigest: sha256:be65...https://www.isharkfly.com/t/docker-centos/15741

相关推荐
量子物理学5 小时前
ubuntu安装docker
ubuntu·docker·eureka
IT策士5 小时前
第45篇 k8s之实战:将 Web 应用迁移到 Kubernetes(下)
前端·容器·kubernetes
学代码的真由酱5 小时前
Docker基础
运维·docker·容器
devilnumber6 小时前
Kubernetes(K8s)重要知识点复习与记录
云原生·容器·kubernetes
元直数字电路验证6 小时前
云计算实验笔记(四):容器编排(Container Orchestration)
运维·笔记·docker·云计算
kukubuzai6 小时前
Docker Note
linux·运维·docker
惜年_night7 小时前
Docker部署05-GitLab的CI-CD发布
ci/cd·docker·gitlab
杨某不才7 小时前
内网环境下,使用Docker安装Elasticsearch分词器插件
elasticsearch·docker·jenkins
IT策士7 小时前
第 47 篇 k8s之生产级考量:高可用、备份与升级
云原生·容器·kubernetes
开开心心就好8 小时前
无弹窗不更新的PC本地播放工具
运维·科技·macos·docker·计算机外设·ocr·powerpoint