Is file.rdf.gz present in the current directory on your host machine, or in the docker container? I suspect it may only exist on your local machine. Since dgraphloader is running inside docker, it will look inside the container for the file.
You could solve the problem by mounting a volume. E.g. if file.rdf.gz is in directory ~/myrdfs then you would use: