在WSL Debian中安装Docker,可以按照以下步骤进行: 确认WSL Debian环境已正确安装并运行: 确保你已经在Windows上启用了WSL,并安装了Debian发行版。可以通过在Windows命令行中输入wsl --list --verbose来检查Debian是否已安装并正在运行。 更新WSL Debian系统的软件包列表: 在Debian的WSL
] https://mirrors.ustc.edu.cn/docker-ce/linux/debian $(lsb_release -cs) stable" #更新软件包索引 sudo apt-get update #安装 Docker Engine-Community sudo apt-get install docker-ce docker-ce-cli containerd.io #要安装特定版本的 Docker Engine-Community,请在仓库中列出可用版本,然后选择一种安装。
安装WSL,并为在 WSL 2 中运行的 Linux 发行版设置用户名和密码。 安装Visual Studio Code(可选)。 这将提供最佳体验,包括能够在远程 Docker 容器中进行编码和调试并连接到 Linux 发行版。 安装Windows 终端(可选)。 这将提供最佳体验,包括能够在同一界面中自定义和打开多个终端(包括 Ubuntu、Debian、PowerShell、...
运行下列命令添加 Docker 的官方 GPG 密钥: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 添加Docker官方清华库 add-apt-repository \"deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \$(lsb_release -cs)\ stable" 安装docker apt i...
Docker 作为目前程序员的必备技能,已经被广泛使用。使用 WSL2 直接安装运行社区版本 Docker ,比安装 Docker Desktop 更加节省空间,且启动速度更快。本文将介绍如何在 Debian WSL2 上安装使用社区版 Docker。 安…
http://mirrors.cloud.tencent.com/docker-ce/http://mirrors.aliyun.com/docker-ce/http://mirrors.ustc.edu.cn/docker-ce 安装时照着官方文档 Install Docker Engine on Debian 来操作就行了,只是将相关网站替换为镜像网址。以阿里云软件源为例,安装的命令行如下: ...
设置Docker apt 官方仓库: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gp...
mkdir docker;cd docker cat>docker-compose.yml<<-'EOF'version:'3.1'services:nginx:image:superng6/nginx:debian-stable-1.18.0container_name:nginxrestart:alwaysports:-80:80EOFsudo docker-compose up-d 由于wsl2 解决了和 windows 使用相同的网络 (镜像网络), 所以可以直接通过 windows 端浏览器访问http:...
wsl debain 怎么能安装docker,一、安装WSL2.0WSL2.0相比WSL1.0具备完整的Linux内核、托管VM和完全的系统调用兼容性,所以我们这里使用WSL2.01.启用适用于Linux的Windows子系统:打开powershell并输入:dism.exe/online/enable-feature/featurename:Microsoft-Windows-Subsy