bash: file: command not found

Solution 1:

Docker images typically do not contain more than the bare essentials, and it seemed whoever created this container didn't deem file necessary. You'll have to install it, the package is also called file.