Ubuntu – bash: file: command not found

bashcommand line

I have ubuntu docker container. I installed there some applicaiton compiled in windows for ubuntu.

It does not execute and I'd like to check if there is a mismatch between the system architecture and the file. I try this command

> file myapp

but unfortunately output is

> bash: file: command not found

Really, in bin directory there is no "file" command. Is it somewhere else or I need I install it?

enter image description here

Best Answer

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.

Related Question