OCI is the standardized container format used by docker.
A useful way to look at a Dockerfile is as a series of shell commands, each generating a tarball; we call these “layers”.
To rehydrate a container from its image, we just start the the first layer and unpack one on top of the next.
You can then unpack the container layers into a mounted loop device.