Docker Community Forums

Share and learn in the Docker community.

Docker Volume query - Unable to understand the config

Hi Team,

I am just a starter in docker and trying to adapt a config from yml file. I am using docker-compose and volumes.

Here is my config file -
honeytrap:
container_name: honeytrap
restart: always
tmpfs:
- /tmp/honeytrap:uid=2000,gid=2000
network_mode: “host”
cap_add:
- NET_ADMIN
image: “dtagdevsec/honeytrap:1903”
read_only: true
volumes:
- /data/honeytrap/attacks:/opt/honeytrap/var/attacks
- /data/honeytrap/downloads:/opt/honeytrap/var/downloads
- /data/honeytrap/log:/opt/honeytrap/var/log

But when I do command

docker-compose -f test.yml up its giving me below error. What does this mean?
Can someone please help?

Error - Unable to open logfile /opt/honeytrap/var/log/honeytrap.log: Permission denied

TIA
Blason R