这是我的情况。我对任何不是 Windows 的操作系统都非常缺乏经验。我正在开发一个运行 Raspbian 的 Raspberry Pi Zero W,最终目标是运行 zimdump,以便我可以编辑 .zim 文件。教程包括使用Docker 将 .zim 文件挂载为卷并在容器中工作。我似乎安装了具有正确版本和架构的 Docker,但docker run hello-world
没有按预期工作。从我第一次运行它时的日志:
Unable to find image ‘hello-world:latest‘ locally
latest: Pulling from library/hello-world
4ee5c797bcd7: Pull complete
Digest: sha256: [long sha256]
Status: Downloaded newer image for hello-world: latest
没有别的了。我第二次运行它,没有打印出来。第三次,我跑了
sudo docker run hello-world -it
打印得更详细
docker: Error response from daemon: OCI runtime failed: container_linux.go:349: starting container process caused “exec: \”-it\”: executable file not found in $PATH”: unknown.
我尝试了各种故障排除步骤,用户的情况仅与我的情况有关,但不完全相关,我不想在幕后更改任何其他让你和我更难的事情。这是我的docker info
:
Client:
Debug Mode: false
Server:
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 1
Server Version: 19.03.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Init Binary: docker-init
containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.66+
Operating System: Raspbian GNU/Linux 10 (buster)
OSType: Linux
Architecture: armv6l
CPUs: 1
Total Memory: 424.8MiB
Name: box.lan
ID: DAJU:334L:G6WP:RARN:REWW:K2LE:CJUK:LCBJ:XDWH:ZX5D:4XRM:BCTM
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1s/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
我在这上面花了 8 个小时,我想做的就是从 .zim 中删除明确的维基百科页面,这样我们就可以将这个树莓派作为离线互联网提供给孩子们。
你们都是最棒的☺️