1. A computer implemented method for caching container files, the method comprising: creating a container running on a computer; saving container files into a private directory; generating checksum file attributes for container files accessed by container processes; assigning the checksum attributes and size file attributes to files' inodes; checking for identical file inodes in a common file database; copying the container files into a disk cache in a lazy mode, if the identical inodes are found, after frequently accessed container files that do not have cache links are detected; adding a cache link to the container files in the private directory, and storing bitmaps of the cached blocks in extended attributes of a file, wherein the cache link points to a copy of a corresponding container file in the disk cache, and wherein the caching is performed on a block basis.