I am very new to docker, as a matter of fact I stumbled upon it because I am using openFOAM for mac.
I am having some troubles editing text file inside of the docker, which is an action I need to perform pretty often when working with openFOAM.
I usually start openFOAM, which I suppose works inside a docker container. Once I do, I log in as “ofuser…” and I can navigate through my files in Mac. The problem is that when I try to use nano to edit files i receive a:
bash: nano: command not found
I tried to do a “apt-get install nano” but i get this instead:
bash: apt-get: command not found
I also tried to use the “cat” function, but it’s not really what I am looking for.
At the moment I’m using two different terminal windows, one logged in the docker the other as mac user. The problem is that this way I have to navigate to the folders twice, which slows down the process considerably.
Is there a way to install nano (or any other text editor) inside the docker?