gpt4 book ai didi

docker - "docker rmi"至少需要 1 个参数

转载 作者:行者123 更新时间:2023-12-02 18:04:07 24 4
gpt4 key购买 nike

我有一个未标记容器的列表:

dockerizer@docker1:~/zookeeper$ docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 46371a3fcd90 12 hours ago 783MB
zookeeper latest e85300ce33a1 12 hours ago 783MB
<none> <none> 5dc40a99a229 12 hours ago 783MB
<none> <none> cf203e8e381d 12 hours ago 783MB
<none> <none> 662536a7dd7c 12 hours ago 740MB
<none> <none> fb43b0c06cb3 12 hours ago 783MB
servery latest 0226f44159c2 2 days ago 51.8MB
<none> <none> e25dad0578e1 2 days ago 51.8MB
consul latest d686c08d0dc8 3 days ago 51.8MB
ubuntu latest 747cb2d60bbe 2 weeks ago 122MB
openjdk latest 74c95c985a85 2 weeks ago 740MB

并尝试删除:
dockerizer@docker1:~/zookeeper$ docker rmi $(docker images -f "dangling=true" -q)
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.

Usage: docker rmi [OPTIONS] IMAGE [IMAGE...]

Remove one or more images

我究竟做错了什么?

最佳答案

这意味着您没有任何悬垂的图像。

看到带有标签 none 的图像并不意味着它是悬空的,正如我在“Docker remove <none> TAG images”中解释的那样

After pulling a signed image, there is an "extra" entry (with tag ) in "docker images" output.
This makes it difficult to rmi the image (you have to force it, or else first delete the properly-tagged entry, or delete by digest.


docker images --digests=true

关于docker - "docker rmi"至少需要 1 个参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46998756/

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