Why does docker exec command fail?

Viewed 476

My server is on Centos7.

I'm trying to go into my docker container.

[MyServer test]$ docker exec -it MyDocker /bin/bash
failed to open stdin fifo SomeComplicatedCharacterSequence-stdin: stat SomeComplicatedCharacterSequence-stdin: no such file or directory: unknown

This command worked before, but now it doesn't work.

What I changed is /etc/yum.repos.d/docker.repo for another reason.

When I inspect my docker image,

            "Cmd": [
                "/bin/bash",
                "--login",
                "-c"
            ],

CMD shows /bin/bash.

How can I resolve this??

Any thought appreciated :)

1 Answers
Related