I’m trying to get Docker installed in a Docker container. I get this error. I haven’t been able to determine the command the installer is trying to execute. I
Centos7 is the base image.
If I switch to a new shell, I have no trouble executing /tmp/repoinstalltemp/mongo/mongodb-linux-x86_64-rhel70-4.2.12/bin/mongod
Any suggestions on what the command being executed is or how to fix this?
Do you wish to continue installing MongoDB in the specified directory? [Y/n]: y
Warning: Error running file
/tmp/repoinstalltemp/mongo/mongodb-linux-x86_64-rhel70-4.2.12/bin/mongod:
/bin/sh: file: command not found
Press [Enter] to continue:
Seems to me that the daemon needs the file command, but it is not available in the shell. Which I guess should not be possible. Could you post your dockerfile (maybe redacted)?
I had also tried starting with FROM mongo:4.4.13 but I couldn’t get the Deadline repo installer to autheneticate with MongoDB (I turned authentication off). I had no problems accessing mongo outside of the installer.
I tried switching to debian (stretch) and I get this error: