Score:0

/bin/sh:1:icoFoam:not found

cn flag

I have installed openfoam software from dockerfile with using ubuntu 18.04 as base image and used CMD command to check the execution of the software. The software command works perfectly from inside the container.

Firstly, I had used RUN sh -c command to install the software and also to source it as RUN sh -c 'echo "source /opt/openfoam5/etc/bashrc" >> ~/.bashrc' .

The CMD command inside dockerfile is CMD icoFoam .

icoFoam command is executable and executes perfectly from inside the container. Openfoam is designed in such a way so that every command of its will execute from terminal. For ref: Openfoam_running_applications

Since, the error was showing /bin/sh:icoFoam not found after running Dockerfile, I gave the RUN command as described in this link: Error: /bin/sh not found - Super user, as

RUN /bin/bash -c .

But, the error still persists as /bin/sh:1:icoFoam not found . Based on this, any work around needs to be done?

cn flag
Sorry I have written it wrongly in the description. I gave given the same command as you have mentioned. But the error is same. @bac0n
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.