score:17

Accepted answer

I have had the same mistake

docker exec -it gallant_bose

C:\Program Files\Docker Toolbox\docker.exe: "exec" requires a minimum of 2 arguments. See 'C:\Program Files\Docker Toolbox\docker.exe exec --help'. Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Run a command in a running container

The solution, add the command bash in my case:

$ docker exec -it gallant_bose bash

root@e747ffecc84d:/#

Best wishes!

Update

Also, you can execute docker exec -it gallant_bose /bin/bash for some images

score:2

Are you sure that test2 exists? I don't see any error in your command. If problem persists, can you provide the docker ps and docker images output please?


Related Query

More Query from same tag