Docker Community Forums

Share and learn in the Docker community.

Image errors in Docker compose

I’m trying to run Redis Insight in Docker Compose and I always get errors even though the only thing I’m changing from the Docker Run command is the volume. How do I fix this?

docker-compose.yml

redisinsights:
  image: redislabs/redisinsight:latest
  restart: always
  ports:
    - '8001:8001'
  volumes:
    - ./data/redisinsight:/db

logs

redisinsights_1  | Process 9 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
redisinsights_1  | Traceback (most recent call last):
redisinsights_1  |   File "./entry.py", line 11, in <module>
redisinsights_1  |   File "./startup.py", line 47, in <module>
redisinsights_1  |   File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 79, in __getattr__
redisinsights_1  |     self._setup(name)
redisinsights_1  |   File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 66, in _setup
redisinsights_1  |     self._wrapped = Settings(settings_module)
redisinsights_1  |   File "/usr/local/lib/python3.6/site-packages/django/conf/__init__.py", line 157, in __init__
redisinsights_1  |     mod = importlib.import_module(self.SETTINGS_MODULE)
redisinsights_1  |   File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
redisinsights_1  |     return _bootstrap._gcd_import(name[level:], package, level)
redisinsights_1  |   File "./redisinsight/settings/__init__.py", line 365, in <module>
redisinsights_1  |   File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
redisinsights_1  |     mkdir(name, mode)
redisinsights_1  | PermissionError: [Errno 13] Permission denied: '/db/rsnaps'