Why did I have to remove bin/sh to run the winpty docker run command?

134 Views Asked by At

I am running a simple docker image and want to check if the applications have been installed. As I am running on windows I need to run the infamous winpty.

I noticed, however, through trial and error. That the below does not work

winpty docker run --r hpjn/doc-training:1.0/bin/sh

However, if I run:

winpty docker run --r hpjn/doc-training:1.0/ I can enter winpty and perform my checks.

A simple question is why did I have to remove /bin/sh?

Cheers

0

There are 0 best solutions below