# Mail-receiver log errors after letsencrypt update

**URL:** <https://meta.discourse.org/t/mail-receiver-log-errors-after-letsencrypt-update/204938>\
**Category:** Support\
**Created:** [October 1, 2021, 6:50am UTC](https://meta.discourse.org/t/mail-receiver-log-errors-after-letsencrypt-update/204938 "2021-10-01T06:50:27Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [December 8, 2021, 4:07pm UTC](https://meta.discourse.org/t/mail-receiver-log-errors-after-letsencrypt-update/204938/12 "2021-12-08T16:07:39Z")

</div>

A little convoluted… but I think this should work:

```bash
# First, make sure you've got the latest base image locally
docker pull discourse/mail-receiver:release

# Get the top layer of the base image
BASE_IMAGE_HASH=$(docker history discourse/mail-receiver:release -q | head -n 1)

# Get the layers of the **running** version
RUNNING_IMAGE_HASH=$(docker container inspect mail-receiver -f "{{.Image}}")
RUNNING_IMAGE_LAYERS=$(docker history $RUNNING_IMAGE_HASH -q)

# Check if the running image layers include the current base image:
[["$RUNNING_IMAGE_LAYERS" == *"$BASE_IMAGE_HASH"*]] && echo "Up to date"

```

That will print “Up to date” if you’re up to date. Otherwise, the final line will print nothing, and exit with a non-zero status.

---

_[View the full topic](https://meta.discourse.org/t/mail-receiver-log-errors-after-letsencrypt-update/204938)._
