问题描述: 笔者意图删除nginx-file的镜像文件,但通过命令删除镜像时出现报错信息,提示存在多个引用(即一个IMAGE可被多个REPOSITORY引用,故删除会出现失败),如下: [root@kazihuo ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE kazihuo/nginx v1 60c22883bb42 minutes ago MB nginx- minutes ago MB [root@kazihuo ~]# doc
public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(Arrays.asList("a", "b", "c", "d")); for (int i = 0; i < list.size(); i++) { list.remove(i); } System.out.println