在 Windows 7 中运行 Docker Toolbox 时出现“只读文件系统”错误

San*_*har 6 windows-7 docker

尝试在 Docker 工具箱中启动 Hello World 应用程序。

操作系统:Windows 7 Professional SP1

这里安装,安装过程中没有错误。

运行“Docker Quickstart Terminal”,然后输入

$ docker run hello-world
Run Code Online (Sandbox Code Playgroud)

我得到

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Pulling fs layer
E:\Sanjay\Tensor\Docker Toolbox\docker.exe: open /mnt/sda1/var/lib/docker/tmp/Ge
tImageBlob474134307: read-only file system.
See 'E:\Sanjay\Tensor\Docker Toolbox\docker.exe run --help'.
Run Code Online (Sandbox Code Playgroud)

任何想法如何进行?


不确定这是否有帮助:

$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.3
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.27-boot2docker
Operating System: Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:2
3:17 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.8 MiB
Name: default
ID: O5YY:NXSQ:PYYI:HHGU:6ZN3:3U7H:DICU:3QWV:ABUJ:EUFR:MAEU:MMNN
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 15
 Goroutines: 27
 System Time: 2016-11-24T18:11:38.478659087Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Insecure Registries:
 127.0.0.0/8
Run Code Online (Sandbox Code Playgroud)

rtf*_*inc 3

我在一台旧的 win8 机器上加载了 Docker,一切运行良好。我后来回来也遇到了和你一样的问题。这就是我所做的。首先你需要找到你的 docker 机器的名称:

$ docker-machine ls
Run Code Online (Sandbox Code Playgroud)

然后使用您的计算机名称运行命令

$ docker-machine restart <name>

这对我有用。我不知道为什么它有效。