wsl 安装 Docker 与 Apollo

准备工作

  1. 配置了 WSLg
  2. 安装 VS Code
  3. 在 VS Code 配置插件 Remote - WSL
VS Code 配置已经安装好的 Ubuntu 系统
打开 WSL Ubuntu
WSL Ubuntu 工作区另存到桌面
桌面 上的 WSL Ubuntu 工作区

双击鼠标打开桌面 上的 WSL Ubuntu 工作区,可以添加文件夹到工作区:

其中的 xinet 便是 WSL Ubuntu 的 用户文件夹,而 xin 是 Windows 系统本地文件夹 /mnt/d/xin

编写测试 GUI 的程序:

安装 Docker

由于 WSL Ubuntu 是原生的 Linux 内核,所以可以将其直接视为 Linux 系统。安装 Docker 就简单多了:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$  echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io

可以测试 Docker 是否正确安装:

$ sudo docker run hello-world

输出:

一定要运行:

$ sudo service docker start
检查 docker 是否安装正确

安装 Apollo

  1. 克隆 Apollo:
$ git clone https://github.com.cnpmjs.org/ApolloAuto/apollo.git
$ cd apollo/
还有 19% 的精彩内容
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
支付 ¥49.00 继续阅读

推荐阅读更多精彩内容