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

相关推荐
容器魔方7 小时前
Bloomberg 正式加入 Karmada 用户组!
云原生·容器·云计算
muyun280012 小时前
Docker 下部署 Elasticsearch 8 并集成 Kibana 和 IK 分词器
elasticsearch·docker·容器
Nazi613 小时前
k8s的dashboard
云原生·容器·kubernetes
hashiqimiya15 小时前
centos配置环境变量jdk
linux·运维·centos
百锦再15 小时前
[特殊字符] Python在CentOS系统执行深度指南
开发语言·python·plotly·django·centos·virtualenv·pygame
傻傻虎虎18 小时前
【Docker】常用帮忙、镜像、容器、其他命令合集(2)
运维·docker·容器
是小崔啊18 小时前
叩丁狼K8s - 概念篇
云原生·容器·kubernetes
2401_897930061 天前
使用Docker轻松部署Neo4j图数据库
数据库·docker·neo4j
LeeZhao@1 天前
【AI推理部署】Docker篇04—Docker自动构建镜像
人工智能·docker·容器
程思扬1 天前
利用JSONCrack与cpolar提升数据可视化及跨团队协作效率
网络·人工智能·经验分享·docker·信息可视化·容器·架构