当前位置: 首页> 汽车> 车展 > 企业网站报告册设计模板_六安网站关键词排名优化报价_合肥seo排名优化_搜索关键词排名一般按照什么收费

企业网站报告册设计模板_六安网站关键词排名优化报价_合肥seo排名优化_搜索关键词排名一般按照什么收费

时间:2025/7/12 2:11:21来源:https://blog.csdn.net/quantum7/article/details/145628155 浏览次数: 0次
企业网站报告册设计模板_六安网站关键词排名优化报价_合肥seo排名优化_搜索关键词排名一般按照什么收费
  • 系统要求

安装WSL。

开通虚拟化:

  • 准备工作
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartwsl --set-default-version 2
  • 安装WSL Ubuntu

方式1(推荐):在Store中搜索Ubuntu,直接安装一个指定版本。

方式2:打开PowerShell,执行命令手动安装:wsl --install

    • 开始菜单中,找到刚刚安装的Ubuntu,运行(有时第一次会报错,再点几次)

    查看:

     wsl -l -vNAME            STATE           VERSION
    * Ubuntu-22.04    Running         2
    • 安装docker

    Docker Desktop: The #1 Containerization Tool for Developers | Docker

    在安装界面,勾选 “Enable the WSL 2 based engine”

    • 检查docker设置

    启动 Docker Desktop,进入设置:

    General页面,确认已启用 WSL 2 引擎。

    Resources页面 > WSL Integration。勾选你的 Linux 发行版(例如 Ubuntu),启用与 Docker 的集成。

    点击Apply & restart。

    • 打开Ubuntu
    docker --version
    Docker version 27.4.0, build bde2b89

    测试docker

    $ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    e6590344b1a5: Download complete
    Digest: sha256:e0b569a5163a5e6be84e210a2587e7d447e08f87a0e90798363fa44a0464a1e8
    Status: Downloaded newer image for hello-world:latestHello 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/
    • 允许非root用户运行docker
    sudo groupadd docker;
    sudo usermod -aG docker $USER
    关键字:企业网站报告册设计模板_六安网站关键词排名优化报价_合肥seo排名优化_搜索关键词排名一般按照什么收费

    版权声明:

    本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

    我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

    责任编辑: