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

苏州企业网站建设定制网络规划设计师正高级任职资格

苏州企业网站建设定制,网络规划设计师正高级任职资格,用asp.net做的网站有哪些,更改各网站企业信息怎么做文章目录[toc]关于 docker 版本查看是否开启 experimental 功能开启 experimental 功能查看当前环境平台拉取一个 arm 平台的容器运行一个 arm 平台的容器整一个 qemu-user-static注册可支持的架构解释器尝试启动 arm64 镜像尝试启动 ppc64le 镜像后台运行 arm64 容器build 一个…文章目录[toc]关于 docker 版本查看是否开启 experimental 功能开启 experimental 功能查看当前环境平台拉取一个 arm 平台的容器运行一个 arm 平台的容器整一个 qemu-user-static注册可支持的架构解释器尝试启动 arm64 镜像尝试启动 ppc64le 镜像后台运行 arm64 容器build 一个 arm64 镜像参考文档 因为国产化的普及尤其一些证券和银行行业已经开始走信创的路线后期也许会接触到国产 CPU arm 平台比如华为的鲲鹏处理器 自己买 arm 平台的 CPU这个成本着实吃不消于是尝试 x86 平台运行 arm 平台的容器来降本增效 关于 docker 版本 docker 运行其他平台容器需要使用 --platform 参数来指定平台docker 19.03.9 及以上的版本才支持 --platform 参数默认没有开启 --platform 参数需要手动开启直接执行会有下面的报错 --platform is only supported on a Docker daemon with experimental features enabled查看是否开启 experimental 功能 --platform 参数需要 experimental 为 true通过下面的命令可以验证是否开启 docker info | grep -i experimental开启 experimental 功能 修改 daemon.json 文件增加下面的参数 experimental: true下面的 daemon.json 文件仅供参考 {registry-mirrors: [https://docker.mirrors.ustc.edu.cn],exec-opts: [native.cgroupdriversystemd],experimental: true,log-driver: json-file,log-opts: {max-size: 100m},storage-driver: overlay2,storage-opts: [overlay2.override_kernel_checktrue] }修改完成后重启 docker 来验证 systemctl restart docker docker info | grep -i experimental查看当前环境平台 uname -m我的平台返回下面的内容 x86_64拉取一个 arm 平台的容器 docker pull --platform arm64 debian:11查看镜像使用的平台 docker inspect debian:11 | grep -i architecture预期返回的结果如下 Architecture: arm64,如果不加 --platform 参数默认拉取自己当前 CPU 平台的镜像 如果本地有相同 tag 的镜像只是平台不同的情况下需要注意区分 tag 不然直接 docker pull 就会覆盖掉之前的镜像之前的镜像 tag 会变为 none 运行一个 arm 平台的容器 在没有 qemu-user-static 的帮助下单靠 --platform 参数是无法启动非本机平台的镜像的 docker run --platform arm64 -t debian:11 uname -m返回的报错如下是因为 CPU 平台不同 standard_init_linux.go:211: exec user process caused exec format error整一个 qemu-user-static multiarch/qemu-user-static - github 注册可支持的架构解释器 不指定 CPU 平台使用 register 来注册可支持的架构解析器 docker run --rm \ --privileged \ multiarch/qemu-user-static:register \ --reset执行成功后会返回类似如下的结果来表明支持的架构解析器 Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha Setting /usr/bin/qemu-arm-static as binfmt interpreter for arm Setting /usr/bin/qemu-armeb-static as binfmt interpreter for armeb Setting /usr/bin/qemu-sparc-static as binfmt interpreter for sparc Setting /usr/bin/qemu-sparc32plus-static as binfmt interpreter for sparc32plus Setting /usr/bin/qemu-sparc64-static as binfmt interpreter for sparc64 Setting /usr/bin/qemu-ppc-static as binfmt interpreter for ppc Setting /usr/bin/qemu-ppc64-static as binfmt interpreter for ppc64 Setting /usr/bin/qemu-ppc64le-static as binfmt interpreter for ppc64le Setting /usr/bin/qemu-m68k-static as binfmt interpreter for m68k Setting /usr/bin/qemu-mips-static as binfmt interpreter for mips Setting /usr/bin/qemu-mipsel-static as binfmt interpreter for mipsel Setting /usr/bin/qemu-mipsn32-static as binfmt interpreter for mipsn32 Setting /usr/bin/qemu-mipsn32el-static as binfmt interpreter for mipsn32el Setting /usr/bin/qemu-mips64-static as binfmt interpreter for mips64 Setting /usr/bin/qemu-mips64el-static as binfmt interpreter for mips64el Setting /usr/bin/qemu-sh4-static as binfmt interpreter for sh4 Setting /usr/bin/qemu-sh4eb-static as binfmt interpreter for sh4eb Setting /usr/bin/qemu-s390x-static as binfmt interpreter for s390x Setting /usr/bin/qemu-aarch64-static as binfmt interpreter for aarch64 Setting /usr/bin/qemu-aarch64_be-static as binfmt interpreter for aarch64_be Setting /usr/bin/qemu-hppa-static as binfmt interpreter for hppa Setting /usr/bin/qemu-riscv32-static as binfmt interpreter for riscv32 Setting /usr/bin/qemu-riscv64-static as binfmt interpreter for riscv64 Setting /usr/bin/qemu-xtensa-static as binfmt interpreter for xtensa Setting /usr/bin/qemu-xtensaeb-static as binfmt interpreter for xtensaeb Setting /usr/bin/qemu-microblaze-static as binfmt interpreter for microblaze Setting /usr/bin/qemu-microblazeel-static as binfmt interpreter for microblazeel Setting /usr/bin/qemu-or1k-static as binfmt interpreter for or1k Setting /usr/bin/qemu-hexagon-static as binfmt interpreter for hexagon尝试启动 arm64 镜像 下载 qemu-aarch64-static wget https://github.com/multiarch/qemu-user-static/releases/download/v5.2.0-1/qemu-aarch64-static \ chmod x qemu-aarch64-static启动容器时将 qemu-aarch64-static 带入到容器内 注意 qemu-aarch64-static 二进制文件的路径可以自己归纳到指定的路径只需要带入到容器内的 /usr/bin 目录下就好了 docker run -t \ --rm \ --platform arm64 \ -v $(pwd)/qemu-aarch64-static:/usr/bin/qemu-aarch64-static \ debian:11 \ uname -m正常情况下返回 aarch64 后容器就会被销毁了因为加了 --rm 参数 尝试启动 ppc64le 镜像 下载 qemu-ppc64le-static wget https://github.com/multiarch/qemu-user-static/releases/download/v5.2.0-1/qemu-ppc64le-static \ chmod x qemu-ppc64le-static启动 ppc64le 平台的镜像 docker run -t \ --rm \ --platform ppc64le \ -v $(pwd)/qemu-ppc64le-static:/usr/bin/qemu-ppc64le-static \ alpine:3.17.2 \ uname -m正常情况下返回 ppc64le 后容器就会被销毁了因为加了 --rm 参数 后台运行 arm64 容器 sleep 315360000 让容器在后台睡眠 100 年因为容器能在后台运行的方法就是要有一个常驻前台的进程 docker run -d \ --rm \ --platform arm64 \ -v $(pwd)/qemu-aarch64-static:/usr/bin/qemu-aarch64-static \ --name centos_7.9_arm64 \ centos:7.9.2009 \ sleep 315360000进入容器 docker exec -it centos_7.9_arm64 bash在容器内执行 yum 命令可以看到一切都是正常的并且是 aarch64 的 yum install -y vimbuild 一个 arm64 镜像 准备一个 Dockerfile需要将 qemu-aarch64-static 带入到容器内的 /usr/bin 目录下才可以实现构建不然会返回 standard_init_linux.go:211: exec user process caused no such file or directory 这样的报错 FROM centos:7.9.2009 ADD ./qemu-aarch64-static /usr/bin/qemu-aarch64-static RUN yum install -y net-tools gcc gcc-c make vim \yum clean all开始构建 docker build \ --platform arm64 \ -t centos_make:7.9_aarch64 .构建完成后会返回两个 Successfully 构建完成后可以使用下面的命令验证容器内的平台是否是 arm64 docker inspect centos_make:7.9_aarch64 | grep -i architecture到这里x86 平台运行和构建其他平台镜像的学习就结束了下面有一篇关于多架构支持的文章有兴趣的可以看一看我是真的看麻了太难了吧果然还是开发改变世界 参考文档 容器镜像多架构支持介绍
http://www.hkea.cn/news/14378427/

相关文章:

  • 网站建设的总结与评价wordpress cms教程
  • 网站api怎么做的wordpress访问404
  • 单页面网站模板怎么做seo擦边球网站
  • 郑州最好的男科医院是什么医院防控措施有这些优化
  • 网站制作工具宿迁宿城区屠园乡网站建设
  • 网站调研怎样做烟台建设集团网站
  • 厦门网站建设开发公司网站建设技术支持 会天下
  • 长春火车站封闭了吗兼职网站建设收费
  • 上鼎工程建设有限公司网站.php的网站是怎么做的
  • 网站建设的现状和未来wordpress媒体库管理
  • 深圳php电商网站开发wordpress 邮件美化
  • 做网站互联互通提供网站建设搭建
  • 百度网站建设优化企业网站制作报价
  • 网站问题seo解决方案网站内页产品 首页推荐
  • 做国际网站的上海高端网站公司微信平台微网站开发
  • 怎么做移动端网站计算像素成都定制软件开发公司
  • 去国外做非法网站吗公众平台推广
  • 婚庆影楼型网站开发爱企查官网
  • 通过企业画册宣传_网络网站建设_新闻媒体合作等方式_做儿童成长相册模版网站
  • 苏州网站建设-中国互联windows系统的vps网站防攻击
  • win7系统做asp网站企业logo设计思路
  • 以下哪一项不属于seo对网站推广的作用做企业网站设计
  • 商务网站建设营销景观设计学
  • 长春网站建设哪家好企业邮箱的推荐
  • 电商网站建设行情辽宁鹤城建设集团网站
  • 郑州艾特软件 网站建设wordpress数据库忘记了
  • 做go分析和kegg分析网站中英文网站用同域名
  • 天下网商自助建站系统如何建立视频号
  • 常用的网站推广的方式方法广西东晋建设有限公司网站
  • 知名网站有哪些网站专做盗版小说 会犯法吗