# Error in docker image on Raspberry Pi 4

**URL:** <https://diyhue.discourse.group/t/error-in-docker-image-on-raspberry-pi-4/630>\
**Category:** Support\
**Created:** [September 8, 2023, 12:57pm UTC](https://diyhue.discourse.group/t/error-in-docker-image-on-raspberry-pi-4/630 "2023-09-08T12:57:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@fred](https://diyhue.discourse.group/u/fred)\
**Post date:** [September 8, 2023, 12:57pm UTC](https://diyhue.discourse.group/t/error-in-docker-image-on-raspberry-pi-4/630/1 "2023-09-08T12:57:01Z")

</div>

Hi,

I’m trying to install on a Raspberry Pi which runs Pi-hole, so the default ports are already in use and can’t be changed easily. In order to avoid clashes I tried to create a docker image with a different IP address with:

```auto
docker run -d --name diyHue --restart=always --network <network> --ip <new_ip> -e MAC=<mac> -u <user> -v /mnt/hue-emulator/config:/opt/hue-emulator/config diyhue/core:latest

```

Unfortunately, the docker image crashes with the error message:

```auto
Traceback (most recent call last):
  File "/opt/hue-emulator/HueEmulator3.py", line 2, in <module>
    from flask import Flask
  File "/usr/local/lib/python3.11/dist-packages/flask/ __init__.py", line 3, in <module>
    from werkzeug.exceptions import abort as abort
  File "/usr/local/lib/python3.11/dist-packages/werkzeug/ __init__.py", line 1, in <module>
    from .serving import run_simple as run_simple
  File "/usr/local/lib/python3.11/dist-packages/werkzeug/serving.py", line 29, in <module>
    from ._internal import _log
  File "/usr/local/lib/python3.11/dist-packages/werkzeug/_internal.py", line 2, in <module>
    import logging
  File "/usr/lib/python3.11/logging/ __init__.py", line 58, in <module>
    _startTime = time.time()
                 ^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted

```

I have tried several things, to no avail. Any idea what could be the cause and how to fix it?

Please let me know if additional information is needed. Disclaimer: I have no experience with Docker.

Cheers  
Fred
