# Cannot start Docker

**URL:** <https://community.open-emr.org/t/cannot-start-docker/18967>\
**Category:** Support\
**Created:** [August 13, 2022, 10:40am UTC](https://community.open-emr.org/t/cannot-start-docker/18967 "2022-08-13T10:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 105

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [September 1, 2022, 8:00pm UTC](https://community.open-emr.org/t/cannot-start-docker/18967/105 "2022-09-01T20:00:10Z")

</div>

we can try debugging by using the nano text editor which is hopefully installed in your docker

1. logout of openemr
2. in terminal : `docker exec -it $(docker ps | grep _openemr | cut -f 1 -d " ") nano src/Common/Crypto/CryptoGen.php`
3. hold the `<Ctrl>` key and hit the / (forward slash)
4. type 466 and hit enter to go to that line #
5. insert this debugging line above that line

```auto
error_log("about to decrypt drive key " . file_get_contents($GLOBALS['OE_SITE_DIR'] . "/documents/logs_and_misc/methods/" . $label));

```

1. `<Ctrl>` x to save, Y to save modified buffer, enter to use the file name
2. refresh openemr login page ( this will look for keys)
3. back to terminal and look in error log with this command

```auto
docker exec -it $(docker ps | grep _openemr | cut -f 1 -d " ") tail /var/log/apache2/error.log

```

---

_[View the full topic](https://community.open-emr.org/t/cannot-start-docker/18967)._
