Docker container permission problem


wayner

Recommended Posts

I have posted this issue in the support thread for this docker, but others have posted about this issue and it has not been answered.

 

I am getting errors when writing to files in appdata on a newly created docker - this is the MQTT docker.

1699286534: Error saving in-memory database, unable to open /config/data/mosquitto.db.new for writing.
1699286534: Error: Permission denied.

 

I believe this directory is appdata/MQTT/data. How do I fix this?

 

Here are the permissions for the main appdata directory plus the child directories

 

drw-rw-rw- 1 nobody users      177 Nov  6 08:28 MQTT/

ls -l for /mnt/user/appdata/MQTT
drw-rw-rw- 1 root root  20 Nov  6 08:28 ca_certificates/
-rw-rw-rw- 1 root root 793 Nov  6 08:28 passwords.README
-rw-rw-rw- 1 root root 794 Nov  6 08:28 mosquitto.conf
drw-rw-rw- 1 root root  20 Nov  6 08:28 conf.d/
drw-rw-rw- 1 root root  20 Nov  6 08:28 certs/
drw-rw-rw- 1 root root  27 Nov  6 08:28 log/
drw-rw-rw- 1 root root   6 Nov  6 08:28 data/
-rw-rw-rw- 1 root root   0 Nov  6 08:28 passwords.mqtt
-rw-rw-rw- 1 root root 794 Nov  6 08:28 mosquitto.conf.example

 

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.