如何在Windows上运行ubuntu容器?
我是Docker的新手,并通过入门文档,https://docs.docker.com/docker-for-windows/#explore-the-application-and-run-examples.
当我运行’docker run -it ubuntu bash’时,我收到以下错误:
这是额外的泊坞信息: 码头版 Client: Version: 17.06.1-ce API version: 1.30 Go version: go1.8.3 Git commit: 874a737 Built: Thu Aug 17 22:48:20 2017 OS/Arch: windows/amd64 Server: Version: 17.06.1-ce API version: 1.30 (minimum version 1.24) Go version: go1.8.3 Git commit: 874a737 Built: Thu Aug 17 23:03:03 2017 OS/Arch: windows/amd64 Experimental: true Docker信息 Containers: 1 Running: 0 Paused: 0 Stopped: 1 Images: 1 Server Version: 17.06.1-ce Storage Driver: windowsfilter Windows: Logging Driver: json-file Plugins: Volume: local Network: l2bridge l2tunnel nat null overlay transparent Log: awslogs etwlogs fluentd json-file logentries splunk syslog Swarm: inactive Default Isolation: hyperv Kernel Version: 10.0 15063 (15063.0.amd64fre.rs2_release.170317-1834) Operating System: Windows 10 Pro OSType: windows Architecture: x86_64 CPUs: 12 Total Memory: 31.92GiB ID: ZVBR:TM24:KXS3:NF5Y:WJTD:7JR3:S4UB:TFIZ:7G32:EHIL:4TKD:RK3V Docker Root Dir: C:ProgramDataDocker Debug Mode (client): false Debug Mode (server): true File Descriptors: -1 Goroutines: 20 System Time: 2017-09-28T10:05:53.8801328-07:00 EventsListeners: 0 Registry: https://index.docker.io/v1/ Experimental: true Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false 我有点困惑为什么OS / Arch版本显示windows / amd64而Info下的架构显示x86_64. 任何有关错误消息的帮助都会很棒. 解决方法
您的问题是您在Windows容器模式下使用docker并尝试拉出一个ubuntu映像,这是一个linux容器映像.你不能这样做.您可以运行Windows容器,也可以运行Linux容器.
您可以通过右键单击docker tray图标切换到Linux容器模式,如下图所示 此外,windows / amd64和x86_64都表示64位操作系统,没有别的 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows – 如何以编程方式更改第三个监视器
- windows – 为什么某些以太网卡上的TCP Chimney Offload功能
- 在Windows Server 2008上的IIS 7下设置SMTP
- windows-server-2012 – Windows Server 2012 – 完全支持区
- appium环境安装说明
- Window 系统 Excel 同时打开两个Excel 文件
- win32上的python:如何获得绝对时间/ CPU周期数
- windows – 在ESXi环境中使用EFI固件和GPT引导磁盘有任何明
- windows-8 – 有没有办法在调试器中查看Windows 8 Store应用
- 从Windows获取完整的音频设备名称
- Windows – 文件的内存映射与CreateFile / ReadF
- RUN command!!!!!
- WinAPICodePack中的TaskDialog在.NET 4.0上不起作
- 通过Microsoft.AspNetCore.App元包简化程序集的引
- Windows程序集堆和堆栈?
- windows – 简单的Win32 :: Unicode :: File rea
- Symfony的最佳分步教程(我在Windows上运行PHP)
- 如何将两个windows vc静态库合并为一个
- windows-7 – 在OpenFiler上使用iSCSI LUN的VMot
- 在各种Windows版本上有什么样的SCTP支持?