# Can’t enter the docker container

**URL:** <https://forums.docker.com/t/can-t-enter-the-docker-container/130686>\
**Category:** General\
**Created:** [October 27, 2022, 2:52am UTC](https://forums.docker.com/t/can-t-enter-the-docker-container/130686 "2022-10-27T02:52:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuys1998](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/wuys1998/32/33226_2.png) [@wuys1998](https://forums.docker.com/u/wuys1998)\
**Post date:** [October 27, 2022, 2:52am UTC](https://forums.docker.com/t/can-t-enter-the-docker-container/130686/1 "2022-10-27T02:52:51Z")

</div>

Hello  
I wanted to enter the docker container created by “docker-compose up” command but failed.  
I have tried many commands such as "docker exec -it " and “docker attach”.

 ![1666774554997](https://global.discourse-cdn.com/docker/original/3X/b/a/bad6073c1fbb687c2de28218df9e3aa1944122a2.png)  
So how to enter an already started container?  
Best regards

---

<div class="post-metadata">

**Author:** ![matthiasradde](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/matthiasradde/32/30830_2.png) [@matthiasradde](https://forums.docker.com/u/matthiasradde)\
**Post date:** [October 27, 2022, 4:16am UTC](https://forums.docker.com/t/can-t-enter-the-docker-container/130686/2 "2022-10-27T04:16:48Z")

</div>

Hello and welcome,  
not every image/container includes the `bash`-command. Often only `ash` is available - so you may try this instead of `bash`.

---

<div class="post-metadata">

**Author:** ![wuys1998](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/wuys1998/32/33226_2.png) [@wuys1998](https://forums.docker.com/u/wuys1998)\
**Post date:** [October 28, 2022, 1:39am UTC](https://forums.docker.com/t/can-t-enter-the-docker-container/130686/3 "2022-10-28T01:39:01Z")

</div>

Thank you!  
I have successfully entered the container.
