WSL 2 上的 Docker 入门

官方文档:https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-containers

docker安装

  1. 问题:docker run hello-world 运行失败

    解决:先运行docker pull hello-world

    原因:有的版本不内置hello-world

适用于 Django 的 Hello World 教程

  1. 问题:python3-venv安装失败
    sudo apt install python3.10-venv
    
    Package python3.10-venv is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or is only available from another source
    
    解决:
    sudo apt update
    sudo apt upgrade
    
    而后可以正常安装
posted @ 2023-09-22 00:27  dddon  阅读(44)  评论(0)    收藏  举报