Home > front end >  Error: No such container: tgd-api_redis_1
Error: No such container: tgd-api_redis_1

Time:04-27

im trying to enter my redis container with this command :

docker container exec -it tgd-api_redis_1 /bin/sh

and this

docker exec -it tgd-api_redis_1 /bin/sh

but the result is error just like the title. i run docker ps to show what container I have, and the container i go to is there.

thanks in advance

enter image description here

CodePudding user response:

Your container names are wrong.

Check stroke and underscore in your names!

Try the container id.

docker exec -it 6a0285dcd25b /bin/sh

  • Related