Jump to content

Handling permission errors when running a self-made docker app


Recommended Posts

I have made a docker app that seems to be working fine if I run it manually. For example:

docker run -d -v /mnt/user/appdata/myapp/config:/CONFIG -v /mnt/user/appdata/myapp/downloads:/DOWNLOADS --name myapp myapp

However, if I try to run it with a template XML file, I get a lot of permission errors:

 

mkdir: cannot create directory ‘/root’: Permission denied
Setting up watches.
Watches established.
crontab: your UID isn't in the passwd file.
bailing out.
crontab: your UID isn't in the passwd file.
bailing out.
crontab: your UID isn't in the passwd file.
bailing out.
crontab: your UID isn't in the passwd file.
bailing out.
crontab: your UID isn't in the passwd file.
bailing out.
crond: can't open or create /var/run/crond.pid: Permission denied
Setting up watches.
Watches established.

 

I am completely new to Docker and I have very limited knowledge of Linux. So my question is, really, how do I deploy a docker app in Unraid and manage the appropriate permissions? For example:

  • Which user should I use in the docker app?
  • Which user should I add to the Unraid template XML?
  • Should I upload the source files to a share using my SMB user? Seems like this will mess up the permissions when trying to install the app.

 

I really need some general advice on how to go about this I have basically no clue and I have exhausted ChatGPT.

Link to comment

Look Here:

     https://forums.unraid.net/topic/131730-update-from-69-to-6115-and-got-permission-denied/#comment-1219731

 

And this is from one of my Dockers:

image.thumb.png.51a2933f42b0c0c8a1567f3ae895ca8d.png

 

This is screenshot from the Edit Container for the Docker container on the    DOCKER   tab.  You may have to add the variables to the container if they do not exist.

 

This is what the configuration panel looks like filled out:

image.png.26006bcd53261b6685239db11bcdc3c0.png

Edited by Frank1940
Link to comment

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.

×
×
  • Create New...