I see, how have you setup docker on the system itself?
Permission denied sounds to me like you have a rootless docker and the system itself does not have write access to the disk to create the image as that is technically the FIRST step it will do first line would only be what image to use as base.