gpt4 book ai didi

docker - 无法在Windows主机上使用Docker拉ubuntu镜像

转载 作者:行者123 更新时间:2023-12-02 19:34:36 26 4
gpt4 key购买 nike

我已经在Windows 10上安装了docker。

Docker版本:

Docker version 17.09.0-ce, build afdb6d4 

我尝试使用以下两个命令拉出最新的ubuntu和ubuntu:16.04
docker pull ubuntu

docker pull ubuntu:16.04

但是我收到以下错误。
docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
no matching manifest for windows/amd64 in the manifest list entries

那么有什么办法可以解决这个问题?

最佳答案

您不能使用Windows守护程序运行linux镜像。

如果您正在运行Docker for Windows,它使您能够在hyper-v VM中运行Windows Docker守护程序和Linux Docker守护程序之间switch

要运行Linux工作负载,请确保已在Docker for Windows whale图标菜单中选择“切换到Linux容器”。

关于docker - 无法在Windows主机上使用Docker拉ubuntu镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47194745/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com