返回
Featured image of post wsl2下docker启动问题

wsl2下docker启动问题

问题描述

通常我们使用systemctl start docker来启动docker,但Wsl2下没有systemctl命令。

问题解决

下载Docker Desktop [win]:https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe

选择需要的wsl linux发行版(Settings>Resources>WSL Integration),然后点击Apply & Restart

docker_wsl_settings
docker_wsl_settings

在Docker Desktop运行的情况下,在wsl中执行docker命令,比如

docker pull tensorflow/tensorflow:custom-op-ubuntu14
docker run -it tensorflow/tensorflow:custom-op-ubuntu14 /bin/bash
Built with Hugo
主题 StackJimmy 设计