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

比较正规的招聘网站深圳狮科网站建设

比较正规的招聘网站,深圳狮科网站建设,安卓开发软件工具,信息科技有限公司网站建设▒ 目录 ▒ #x1f6eb; 导读开发环境 1️⃣ 安装安装Docker Desktop for Windows 2️⃣ 环境配置3️⃣ hello world第一次运行再次运行分析总结 #x1f4d6; 参考资料 #x1f6eb; 导读 开发环境 版本号描述文章日期2023-12-14操作系统Win11 - 22H222621.2715WSL2 C:… ▒ 目录 ▒ 导读开发环境 1️⃣ 安装安装Docker Desktop for Windows 2️⃣ 环境配置3️⃣ hello world第一次运行再次运行分析总结 参考资料 导读 开发环境 版本号描述文章日期2023-12-14操作系统Win11 - 22H222621.2715WSL2 C:\Windows\System32docker version Client:Cloud integration: v1.0.35desktop.5Version: 24.0.7API version: 1.43Go version: go1.20.10Git commit: afdd53bBuilt: Thu Oct 26 09:08:44 2023OS/Arch: windows/amd64Context: defaultServer: Docker Desktop 4.26.0 (130397)Engine:Version: 24.0.7API version: 1.43 (minimum version 1.12)Go version: go1.20.10Git commit: 311b9ffBuilt: Thu Oct 26 09:08:02 2023OS/Arch: linux/amd64Experimental: falsecontainerd:Version: 1.6.25GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7frunc:Version: 1.1.10GitCommit: v1.1.10-0-g18a0cb0docker-init:Version: 0.19.0GitCommit: de40ad01️⃣ 安装 首先安装WSL可以参考文章《【WSL】Windows下的Linux子系统使用方法指南 https://blog.csdn.net/kinghzking/article/details/134984077》。 否则启动Docker会报下面的错误 安装Docker Desktop for Windows 官网教程https://docs.docker.com/desktop/install/windows-install/ 双击 Docker Desktop Installer .exe 以运行安装程序。 出现提示时请确保选择或不选择“配置”页上的“使用 WSL 2 而不是 Hyper-V”选项具体取决于所选的后端。 如果您的系统仅支持这两个选项之一您将无法选择要使用的后端。 按照安装向导上的说明授权安装程序并继续安装。 安装成功后选择**“关闭**”以完成安装过程。 如果管理员帐户与用户帐户不同则必须将用户添加到 docker-users 组。 以管理员身份运行**“计算机管理”**然后导航到 “本地用户和组” “组” docker-users。单击鼠标右键将用户添加到组中。注销并重新登录以使更改生效。 2️⃣ 环境配置 Docker Desktop安装后从 Windows 开始菜单启动 Docker Desktop然后从任务栏的隐藏图标菜单中选择 Docker 图标。 右键单击该图标以显示 Docker 命令菜单然后选择“设置”。 确保在“设置”“常规”中选中“使用基于 WSL 2 的引擎”。 通过转到“设置”“资源”“WSL 集成”从要启用 Docker 集成的已安装 WSL 2 发行版中进行选择。 并打开 WSL 发行版小编只有一个选项 Ubuntu 3️⃣ hello world 关于Docker可以找到很多教程这里推荐《【狂神说Java】Docker最新超详细版教程通俗易懂 https://www.bilibili.com/video/BV1og4y1q7M4》真的很细致庖丁解牛。 本小节以hello-world为例简单了解下什么是Docker。 第一次运行 在命令行中执行docker run hello-world将显示下面的内容其流程整理如下 本地查找名为hello-world:latest的image未找到服务器下载image显示其信息。执行Container会创建一个Container打印了额外的说明信息 C:\Windows\System32docker run hello-world # 1. 本地查找名为hello-world:latest的images未找到 Unable to find image hello-world:latest locally# 2. 服务器下载image显示其信息。 latest: Pulling from library/hello-world 719385e32844: Pull complete Digest: sha256:3155e04f30ad5e4629fac67d6789f8809d74fea22d4e9a82f757d28cee79e0c5 Status: Downloaded newer image for hello-world:latest# 3. 执行docker会创建一个Container Hello from Docker!# 4. 打印了额外的说明信息 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/再次运行 在命令行中再次执行docker run hello-world将显示下面的内容内容与第一次不一样了。 其流程也发生了变换整理如下 本地查找名为hello-world:latest的image找到了拉取本地image创建一个新的Container。执行新的Container打印了额外的说明信息 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/分析总结 两次执行只有一个image hello-world 两次执行生成两个container但是都使用的是同一个image hello-world如下图 所以说docker run 命令首先creates在指定映像上创建一个可写容器层然后starts使用指定的命令。 如果想使用已经有的容器执行docker start 容器Id或者 docker exec -it 容器Id /bin/bash命令。 效果如下 C:\Windows\System32docker start f8d2fef7a3f3e0e35319b5864dcf6ac1dc0e5b79a34dfa5d97c19de6adf2362b f8d2fef7a3f3e0e35319b5864dcf6ac1dc0e5b79a34dfa5d97c19de6adf2362bC:\Windows\System32docker exec -it f8d2fef7a3f3e0e35319b5864dcf6ac1dc0e5b79a34dfa5d97c19de6adf2362b /bin/bash Error response from daemon: Container f8d2fef7a3f3e0e35319b5864dcf6ac1dc0e5b79a34dfa5d97c19de6adf2362b is not runningC:\Windows\System32docker logs -tf f8d2fef7a3f3e0e35319b5864dcf6ac1dc0e5b79a34dfa5d97c19de6adf2362b 2023-12-14T15:20:21.141914310Z 2023-12-14T15:20:21.142064937Z Hello from Docker! 2023-12-14T15:20:21.142072020Z This message shows that your installation appears to be working correctly. 2023-12-14T15:20:21.142077010Z 2023-12-14T15:20:21.142081638Z To generate this message, Docker took the following steps: 2023-12-14T15:20:21.142085977Z 1. The Docker client contacted the Docker daemon. 附一张docker run流程图 参考资料 【WSL】Windows下的Linux子系统使用方法指南 https://blog.csdn.net/kinghzking/article/details/134984077WSL 2 上的 Docker 远程容器入门 https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-containers【狂神说Java】Docker最新超详细版教程通俗易懂 https://www.bilibili.com/video/BV1og4y1q7M4Windows系统 WSL安装 CentOS7 和docker https://www.jianshu.com/p/ed0d23e742d0
http://www.huolong8.cn/news/305703/

相关文章:

  • 专业网站建设详细方案做网站的公司不会设计
  • 电子商务网站功能设计与分析用python写一个简单的网页
  • 中国建设银行安徽省分行招聘网站重庆建设工程信息查询
  • 找客户在公司做网站网站建设上海网站建设公司网站
  • 连云港网站建设 连云港网站制作网络系统管理比赛
  • 上海网站快速排名北京网站建设方案系统
  • TP5企业网站开发教程百度云注册城乡规划师2021
  • 一个公司名可以备案多少个网站大专自考报名入口官网
  • 手机上怎么做网站百度云盘登录电脑版
  • 池州网站建设电话有没有做网页的网站
  • 福田皇岗社区网站建设创业做网站
  • 专门做老年旅游的网站深圳网站设计小程序
  • 一个专做窗帘的网站wordpress添加用户注册登录界面
  • 网站托管..传媒大学附近网站建设公司
  • 松岗做网站联系电话o2o平台有哪些行业
  • 旅游网站建设课程设计个人网站开发公司
  • 网站建设合同书 虚拟石家庄新钥匙网站
  • 提高网站订单转化率设计网站网站名称
  • wordpress会员网站点样做网站
  • 织梦安防网站源码鹤壁专业做网站多少钱
  • 网站网站建设考虑要素建设网站多少费用
  • 深圳分销网站设计哪家好什么是网络营销网络营销有哪些内容
  • 为一个网站设计一个推广方案华为wordpress
  • 帝国cms做企业网站网页策划方案800字
  • 网站怎么优化到首页注册个空壳公司需要多少钱
  • 河南双师培训网站网站开发软件手机版
  • 四川省查询建设证书的网站孝感住房和城乡建设部网站
  • 沈阳网站定制建立一个网站 优帮云
  • 宁波网站建设设计公司信息做网站内容
  • 建行互联网站怎么下载网页视频