docker-squash icon indicating copy to clipboard operation
docker-squash copied to clipboard

ERROR Could not get the layer ID to squash

Open NeoOtani opened this issue 11 months ago • 1 comments

When I build image by docker squash I got error, Could some body help me ? docker-squash -f ******/posopenresty:20220411 --tag test_image test_image

2024-02-28 11:01:16,738 squash.py:54 INFO docker-squash version 1.2.0, Docker 25.0.3, API 1.44... 2024-02-28 11:01:16,738 squash.py:96 INFO Using v2 image format 2024-02-28 11:01:16,741 image.py:179 INFO Old image has 31 layers 2024-02-28 11:01:16,741 cli.py:142 ERROR Could not get the layer ID to squash, please check provided 'layer' argument: ******/posopenresty:20220411 2024-02-28 11:01:16,741 cli.py:144 ERROR Execution failed, consult logs above. If you think this is our fault, please file an issue: https://github.com/goldmann/docker-squash/issues, thanks!

NeoOtani avatar Feb 28 '24 04:02 NeoOtani

Can you run with debug enabled (i.e. -v ) ? Does it squash successfully without the -f flag? If you run <docker|podman> history test_image what IDs does it show? i.e. is posopenresty in there?

rnc avatar Feb 28 '24 08:02 rnc