According to embodiments of the present disclosure, a method, a device and a computer program product for layer deduplication are provided. The method comprises obtaining a first image generated for a first container, the first image including a plurality of layers associated with the first container. The method further comprises in response to determining that a first layer in the first image is identical to a second layer to be created, creating the second layer by generating a data archive associated with the first layer. In addition, the method comprises generating, based on the created second layer, a second image for a second container.