1

I am trying to setup Docker container for development. I have Windows 10 Pro 19044.2251, so I installed Docker Desktop, fixed WSL 2, run container like

docker run --name Fresh -it --gpus all ubuntu sh

installed mc into it (apt-get update apt-get install -y mc), then I needed to open another CLI with button in Docker Desktop and now if I run mc and try to view or edit any file (F3/F4) in it, I get "pipe failed" error message, which is btw quite hard to remove (needs a dozen of mouse clicks outside it). How to fix this?

mcedit from command line works properly.

enter image description here

1 Answer 1

1

In my case there was no /bin/sh. So I made:

sudo ln -s /usr/bin/dash /bin/sh

It helped to me. Or ln -s /usr/bin/bash /bin/sh if you have no dash shell installed.

4
  • 1
    Welcome on SuperUser... Did you need root privileges (e.g. sudo) to create the link?
    – Hastur
    Commented Jan 8, 2023 at 10:30
  • Yes. /bin directory is protected. Commented Jan 8, 2023 at 10:45
  • ...Then feel you free to edit your post adding our secret ;-)
    – Hastur
    Commented Jan 8, 2023 at 10:47
  • Updated. Thanks. :-) Commented Jan 8, 2023 at 11:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .