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

有源码帮忙搭建网站吗做京挑客的网站

有源码帮忙搭建网站吗,做京挑客的网站,开发app需要哪些费用,steam账号注册网站目录 要求完成 具体操作 1.安装docker服务#xff0c;配置镜像加速器 2.下载系统镜像#xff08;Ubuntu、 centos#xff09; 3.基于下载的镜像创建两个容器 #xff08;容器名一个为自己名字全拼#xff0c;一个为首名字字母#xff09; 4.容器的启动、 停止及重启…目录 要求完成 具体操作 1.安装docker服务配置镜像加速器 2.下载系统镜像Ubuntu、 centos 3.基于下载的镜像创建两个容器 容器名一个为自己名字全拼一个为首名字字母 4.容器的启动、 停止及重启操作 5.怎么查看正在运行的容器和所有容器 6.怎么退出容器 两种方法分别实现 7.怎么连接到运行的容器 8.查看容器或镜像的内部信息 9.如何查看所有镜像 要求完成 1.安装docker服务配置镜像加速器 2.下载系统镜像Ubuntu、 centos 3.基于下载的镜像创建两个容器 容器名一个为自己名字全拼一个为首名字字母 4.容器的启动、 停止及重启操作 5.怎么查看正在运行的容器和所有容器 6.怎么退出容器 两种方法分别实现 7.怎么连接到运行的容器 8.查看容器或镜像的内部信息 9.如何查看所有镜像 具体操作 1.安装docker服务配置镜像加速器 使用yum进行安装指定版本 1添加docker-ce 源信息 [rootlocalhost docker]# wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo2修改docker-ce 源 [rootlocalhost docker]# sed -i sdownload.docker.commirrors.tuna.tsinghua.edu.cn/docker-ceg /etc/yum.repos.d/docker-ce.repo3更新并安装 Docker-CE #更新 yum 软件包索引 [rootlocalhost docker]# yum makecache fast #列出可下载版本 [rootlocalhost docker]# yum list docker-ce.x86_64 --showduplicates | sort -r #选定指定版本下载 [rootlocalhost docker]# yum install -y docker-ce-17.03.3.ce-1.el74配置镜像加速 Docker 从 Docker Hub 拉取镜像因为是从国外获取所以速度较慢可以通过配置国内镜像源的方式从国内获取镜像提高拉取速度。 这里我使用的网易的开源镜像http://hub-mirror.c.163.com/ [rootlocalhost docker]# cd /etc/docker [rootlocalhost docker]# vim daemon.json[rootlocalhost docker]# cat daemon.json {registry-mirrors: [http://hub-mirror.c.163.com, https://docker.mirrors.ustc.edu.cn] }5验证 [rootlocalhost docker]# 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/验证成功--出现“Hello from Docker!” 2.下载系统镜像Ubuntu、 centos 使用以下命令下载系统镜像 [rootlocalhost docker]# sudo docker pull ubuntu [rootlocalhost docker]# sudo docker pull centos3.基于下载的镜像创建两个容器 容器名一个为自己名字全拼一个为首名字字母 有两种方式 1.docker create 镜像名 2.docker run -it --name 容器名 镜像名 [rootlocalhost docker]#docker run -it --name cwj ubuntu /bin/bash [rootlocalhost docker]#docker run -it --name cwj ubuntu /bin/bash4.容器的启动、 停止及重启操作 [rootlocalhost docker]# docker start cwj cwj [rootlocalhost docker]# docker stop cwjcwj [rootlocalhost docker]# [rootlocalhost docker]# docker restart cwj cwj5.怎么查看正在运行的容器和所有容器 查看正在运行的docker ps [rootlocalhost docker]# sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 01254a43a26c ubuntu /bin/bash 4 minutes ago Up 58 seconds cwj f4a130141d8b centos /bin/bash 10 minutes ago Up 9 minutes chen 查看所有的容器加上 -a 参数 [rootlocalhost docker]# sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 01254a43a26c ubuntu /bin/bash 4 minutes ago Up About a minute cwj dd6b2ad0a0de ubuntu /bin/bash 9 minutes ago Exited (0) 9 minutes ago naughty_austin f4a130141d8b centos /bin/bash 11 minutes ago Up 10 minutes chen 9496f74e1e8e hello-world /hello 46 minutes ago Exited (0) 46 minutes ago crazy_kowalevski 33e95bc8e4d8 hello-world /hello About an hour ago Exited (0) About an hour ago hopeful_goldwasser6.怎么退出容器 两种方法分别实现 1.使用CtrlD 退出容器 2.使用exit退出容器 7.怎么连接到运行的容器 1.之前我所写的第二条创建容器的命令就是创建后开启并进入容器 2.docker exec -it 容器名 [rootlocalhost docker]# docker exec -it cwj /bin/bash 8.查看容器或镜像的内部信息 1.查看容器信息sudo docker inspect 容器名 [rootlocalhost docker]# sudo docker inspect cwj [{Id: 01254a43a26c0adebb7e7a0ffddc10e0308a6b1a8edfb72f09c4b713f4fb7674,Created: 2023-08-10T02:34:54.747910372Z,Path: /bin/bash,Args: [],State: {Status: running,Running: true,Paused: false,Restarting: false,OOMKilled: false,Dead: false,Pid: 7097,ExitCode: 0,Error: ,StartedAt: 2023-08-10T02:38:19.263058884Z,FinishedAt: 2023-08-10T02:37:58.993591604Z}, ...... 2. 查看镜像内部信息sudo docker image inspect 镜像名 [rootlocalhost docker]# docker image inspect ubuntu [{Id: sha256:01f29b872827fa6f9aed0ea0b2ede53aea4ad9d66c7920e81a8db6d1fd9ab7f9,RepoTags: [ubuntu:latest],RepoDigests: [ubuntusha256:ec050c32e4a6085b423d36ecd025c0d3ff00c38ab93a3d71a460ff1c44fa6d77],Parent: ,Comment: ,Created: 2023-08-04T04:53:00.244301537Z,Container: 822f331d59eb72d1131a8a5fcb2b935c8110114c22be26c8572d9881dcff31e0,ContainerConfig: {Hostname: 822f331d59eb,Domainname: ,User: ,AttachStdin: false,AttachStdout: false,AttachStderr: false,Tty: false,OpenStdin: false,StdinOnce: false ...... 9.如何查看所有镜像 [rootlocalhost docker]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest 01f29b872827 5 days ago 77.8MB hello-world latest 9c7a54a9a43c 3 months ago 13.3kB centos latest 5d0da3dc9764 23 months ago 231MB
http://www.pierceye.com/news/498002/

相关文章:

  • 网站开发公司长春高校 网站建设实施方案
  • 我做的网站打开慢怎么处理防控措施有这些优化
  • 网站的登录界面是怎么做的网站开发 职位
  • 西安英文网站制作企业年报申报入口官网
  • 做一网站多少钱企业官方网站建设教程
  • 自己建的网站能用吗海南网站建设哪家好
  • 网络公司网站模板html网站制作 数据库
  • 温州哪里有网站优化南通营销网站建设
  • 怎么在网站标头做图标wordpress 远程数据库
  • 厦门做手机网站公司最新常州网页制作招聘
  • 施工企业农民工工资专项检查报告百度seo怎么把关键词优化上去
  • 圆通速递我做网站sydney wordpress
  • 做外汇有哪些正规的网站做网站只用前端知识可以吗
  • 奢侈品购物网站排名微分销手机网站制作
  • 东莞市永铭装饰有限公司优质的seo快速排名优化
  • 大型网站服务器配置西宁网站设计建设
  • 网站怎么加ico网站模板上传到那个目录
  • dede关闭网站屯留做网站哪里好
  • 如何用python做网站脚本语言网络行为管理系统
  • 排名好的徐州网站建设微信里的小程序不见了
  • 常州公司网站建设网站基础建设ppt
  • 电商网站产品模块食品包装设计说明范文
  • WordPress的站内地图看网站的浏览器
  • 国外服装购物网站大全网站域名地址查询
  • 莆田专业网站建设公司价格九一制作厂网站app
  • 外贸网站怎么做会吸引眼球wordpress 律师事务所模板
  • 如何用代码制作网站最便宜网站建设
  • 苏州优化网站公司做编程网站有哪些内容
  • 山东省住房和城乡建设网站创建一个网站多少钱
  • 在北京做网站制作一个月多少钱个人电脑可以做网站服务器