A disk image (.dmg file) is a file that looks and acts like a mountable device or volume. You can use Disk Utility or hdiutil to create disk images.