Use tarfile module when get config from container