当前位置: 首页 > news >正文

3-运行第一个docker image-hello world

CentOS7.9下安装完成docker后,我们开始部署第一个docker image-hello world

1.以root用户登录CentOS7.9服务器,拉取centos7 images

命令:

docker pull hello-world

[root@centos79 ~]# docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
2db29710123e: Pull complete 
Digest: sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
[root@centos79 ~]# 

2.查看docker镜像

命令:

docker images | grep hello-world

[root@centos79 ~]# docker images | grep hello-world
hello-world                  latest     feb5d9fea6a5   2 years ago     13.3kB
[root@centos79 ~]# 

3.运行docker镜像hello-world

命令:

docker run hello-world

[root@centos79 ~]# docker run hello-worldHello from Doc
http://www.lryc.cn/news/235018.html

相关文章:

  • 【漏洞复现】泛微e-Weaver SQL注入
  • 「git 系列」git 如何存储代码的?
  • IDEA 集成 Docker 插件一键部署 SpringBoot 应用
  • IDEA无法查看源码是.class,而不是.java解决方案?
  • 机器视觉系统选型-定光照强度
  • ChatGLM3-6B:新一代开源双语对话语言模型,流畅对话与低部署门槛再升级
  • StoneDB顺利通过中科院软件所 2023 开源之夏 结项审核
  • Linux本地docker一键部署traefik+内网穿透工具实现远程访问Web UI管理界面
  • SpringCloud FeignClient声明式服务调用采坑记录(A调用服务B/C,B/C重启后必须重启A后才能成功调用配置项)
  • 安装银河麒麟linux系统docker(docker-compose)环境,注意事项(一定能解决,有环境资源)
  • BUG:编写springboot单元测试,自动注入实体类报空指针异常
  • 深度解析 InterpretML:打开机器学习模型的黑箱
  • 数据结构初阶leetcodeOJ题(二)
  • 若依框架数据源切换为pg库
  • java 访问sqlserver 和 此驱动程序不支持jre1.8错误
  • C/C++字符判断 2021年12月电子学会青少年软件编程(C/C++)等级考试一级真题答案解析
  • Kotlin语言实现单击任意TextVIew切换一个新页面,并且实现颜色变换
  • Flume学习笔记(4)—— Flume数据流监控
  • 使用webhook发送企业微信消息
  • C语言的由来与发展历程
  • python django 小程序博客源码
  • Android并发编程与多线程
  • ChatGPT简介及基本概念
  • 学习模拟简明教程【Learning to simulate】
  • 电子学会C/C++编程等级考试2021年12月(一级)真题解析
  • 数字游戏
  • k8s pod 处于Terminating的原因分析和解决处理——筑梦之路
  • 西南科技大学814考研二
  • oracle21c报错 【ORA-65096: 公用用户名或角色名无效】
  • C++ 递增/递减运算符重载