Docker container cannot enter

  docker, question

Docker is installed on windows, centos7 is installed in docker.docker execCan’t enter the container, what is the reason:

D:\workspace\go_work
 λ docker ps
 CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
 0e2801cbb8bf        75835a67d134        "/bin/bash"         15 hours ago        Up 9 seconds                            GoWeb
 
 D:\workspace\go_work
 λ docker exec –it 0e2801cbb8bf /bin/bash
 Error: No such container: –it

Please help me, thank you

docker exec -it 0e2801cbb8bf /bin/bash

Yes-itrather than–itThere is something wrong with your character although I don’t know how you typed it (: