# Container not found

**URL:** <https://forums.docker.com/t/container-not-found/48538>\
**Category:** General\
**Created:** [March 27, 2018, 2:46pm UTC](https://forums.docker.com/t/container-not-found/48538 "2018-03-27T14:46:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![irshaddocker](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@irshaddocker](https://forums.docker.com/u/irshaddocker)\
**Post date:** [March 27, 2018, 2:46pm UTC](https://forums.docker.com/t/container-not-found/48538/1 "2018-03-27T14:46:40Z")

</div>

I am not able to run exec command, docker is giving below error when i run the exec command

rpc error: code = 2 desc = containerd: container not found

The machine is working, the containers are working but i am not able to run exec command. This container is for db and my site is not able to fetch records from db and hence site is down.

Please help me to fix this issue.

Thanks  
Irshad

---

<div class="post-metadata">

**Author:** ![wdijkerman](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/wdijkerman/32/17091_2.png) [@wdijkerman](https://forums.docker.com/u/wdijkerman)\
**Post date:** [March 28, 2018, 5:35pm UTC](https://forums.docker.com/t/container-not-found/48538/2 "2018-03-28T17:35:59Z")

</div>

What is the exact command you use?

---

<div class="post-metadata">

**Author:** ![irshaddocker](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@irshaddocker](https://forums.docker.com/u/irshaddocker)\
**Post date:** [March 28, 2018, 6:11pm UTC](https://forums.docker.com/t/container-not-found/48538/3 "2018-03-28T18:11:54Z")

</div>

I am using followoing command to enter db container but it is giving error

docker exec -it cpx.db /bin/bash

It was working fine till last week.

---

<div class="post-metadata">

**Author:** ![wdijkerman](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/wdijkerman/32/17091_2.png) [@wdijkerman](https://forums.docker.com/u/wdijkerman)\
**Post date:** [March 28, 2018, 6:30pm UTC](https://forums.docker.com/t/container-not-found/48538/4 "2018-03-28T18:30:03Z")

</div>

The container is not restarted/recreated since the last time and has a new name or image id?
