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

5118网站北京网站开发网站建设咨询

5118网站,北京网站开发网站建设咨询,百度申请qq号免费注册官网,推荐网站建设服务器文章目录 CentO7.9安装Docker删除旧版本的Docker安装Docker仓库安装Docker安装最新版本安装指定版本 Docker安装个NGINX查看Docker镜像运行查看Docker进程查看启动端口停止Docker容器 CentO7.9安装Docker 删除旧版本的Docker sudo yum remove docker \docker-client \docker-… 文章目录 CentO7.9安装Docker删除旧版本的Docker安装Docker仓库安装Docker安装最新版本安装指定版本 Docker安装个NGINX查看Docker镜像运行查看Docker进程查看启动端口停止Docker容器 CentO7.9安装Docker 删除旧版本的Docker sudo yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine这个可能是匹配不到的来个狠一点的 sudo yum remove docker*带有Docker的全部删掉 安装Docker仓库 sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo安装Docker 安装最新版本 安装Docker最新版不带版本的默认最新版本 sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin安装指定版本 查找docker-ce的版本 [rootWDQCVM ~]# yum list docker-ce --showduplicates | sort -r* updates: mirrors.aliyun.com Loading mirror speeds from cached hostfile Loaded plugins: fastestmirror* extras: mirrors.aliyun.com docker-ce.x86_64 3:24.0.5-1.el7 docker-ce-stable docker-ce.x86_64 3:24.0.4-1.el7 docker-ce-stable docker-ce.x86_64 3:24.0.3-1.el7 docker-ce-stable docker-ce.x86_64 3:24.0.2-1.el7 docker-ce-stable docker-ce.x86_64 3:24.0.1-1.el7 docker-ce-stable查找docker-ce-cli的版本 [rootWDQCVM ~]# yum list docker-ce-cli --showduplicates | sort -r* updates: mirrors.aliyun.com Loading mirror speeds from cached hostfile Loaded plugins: fastestmirror Installed Packages* extras: mirrors.aliyun.com docker-ce-cli.x86_64 1:24.0.5-1.el7 docker-ce-stable docker-ce-cli.x86_64 1:24.0.5-1.el7 docker-ce-stable docker-ce-cli.x86_64 1:24.0.4-1.el7 docker-ce-stable docker-ce-cli.x86_64 1:24.0.3-1.el7 docker-ce-stable docker-ce-cli.x86_64 1:24.0.2-1.el7 docker-ce-stable docker-ce-cli.x86_64 1:24.0.1-1.el7 docker-ce-stable 将参数替换即可 通用示例 sudo yum install docker-ce-VERSION_STRING docker-ce-cli-VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin指定版本示例 sudo yum install docker-ce-24.0.4-1.el7 docker-ce-cli-24.0.4-1.el7 containerd.io docker-buildx-plugin docker-compose-pluginCentos7.9版本安装Docker指定版本时安装了好多次这么设置版本号才成功在软件包名称和版本号之间不需要添加数字和冒号但官网给出的实例是带有:的费解。 校验是否成功 [rootWDQCVM ~]# sudo systemctl start docker [rootWDQCVM ~]# sudo docker --version Docker version 24.0.4, build 3713ee1 [rootWDQCVM ~]# 有以下这些就可说明成功了 [rootWDQCVM ~]# sudo docker run hello-worldHello from Docker! This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the hello-world image from the Docker Hub.(amd64)3. The Docker daemon created a new container from that image which runs theexecutable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.To try something more ambitious, you can run an Ubuntu container with:$ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID:https://hub.docker.com/For more examples and ideas, visit:https://docs.docker.com/get-started/[rootWDQCVM ~]# Docker安装个NGINX [rootWDQCVM ~]# docker pull nginx Using default tag: latest latest: Pulling from library/nginx 52d2b7f179e3: Pull complete fd9f026c6310: Pull complete 055fa98b4363: Pull complete 96576293dd29: Pull complete a7c4092be904: Pull complete e3b6889c8954: Pull complete da761d9a302b: Pull complete Digest: sha256:13d22ec63300e16014d4a42aed735207a8b33c223cff19627dd3042e5a10a3a0 Status: Downloaded newer image for nginx:latest docker.io/library/nginx:latest [rootWDQCVM ~]# 查看Docker镜像 [rootWDQCVM ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest eea7b3dcba7e 27 hours ago 187MB hello-world latest 9c7a54a9a43c 3 months ago 13.3kB运行 [rootWDQCVM ~]# docker run --name nginx -p 8080:80 -d nginx d1b23e05201a232eb57c2458423b88cee5dc9a27464bb680978676dcd4dd741a [rootWDQCVM ~]#查看Docker进程 [rootWDQCVM ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d1b23e05201a nginx /docker-entrypoint.… 7 seconds ago Up 4 seconds 0.0.0.0:8080-80/tcp, :::8080-80/tcp nginx [rootWDQCVM ~]# 查看启动端口 [rootWDQCVM ~]# ss -ltnp |grep 8080 LISTEN 0 128 *:8080 *:* users:((docker-proxy,pid11654,fd4)) LISTEN 0 128 [::]:8080 [::]:* users:((docker-proxy,pid11661,fd4)) [rootWDQCVM ~]# 停止Docker容器 [rootWDQCVM ~]# docker stop nginx nginx [rootWDQCVM ~]# [rootWDQCVM ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [rootWDQCVM ~]# Docker官网
http://mrfarshtey.net/news/50656/

相关文章:

  • 南京越城建设集团网站小程序平台取名
  • 可以免费做网站吗免费网站托管平台
  • 做家乡网站的素材dw网页设计作品 成品
  • 做网站江西推广赚钱平台
  • 搞钱的路子网站模仿建设银行网站
  • 网站建设与什么专业有关有什么免费做h5的素材网站
  • 福建咨询网站建设商家高端网站建设机构
  • 建立本机网站网站建设文献综述
  • 遵义市 网站建设衡阳微信网站开发
  • 开源站群cms网站建设预算表制作
  • 凡科建站官网登科技术语有哪些
  • 如何给网站添加外链wordpress js文件
  • 网站开发google网站建设001
  • 机构改革网站建设信用卡网站建设
  • 网上书店网站前端搜索条怎么做建e网怎么做效果图
  • 网站 多语言网站开发初级技术人员
  • asp网站 换模板wordpress网站防护
  • dede部署两个网站网络初始网站
  • 做调查问卷权威网站wordpress多站点建站
  • 设计排版网站天津seo招聘
  • lanyun网站开发如何修改百度上面的门店号码
  • 注册一个网站网牛网站建设
  • 德阳网站建设求职简历网站建设 海口
  • jsp网站开发企业管理课程有哪些
  • 网站上关键词的推广怎么做app数据分析软件
  • 做印刷的网站有哪些邯郸市瑞荣网络科技有限公司
  • 360免费建站网址是什么wordpress做网站优点
  • 企业网站建站系统怎么给自己的网站做优化
  • php红酒网站建设wordpress和seo权重
  • 集团网站信息建设情况网站首页流程图