Changes

From SME Server
Jump to navigationJump to search
605 bytes added ,  16:37, 17 November 2022
Line 199: Line 199:  
  '''/home/e-smith/files/docker'''
 
  '''/home/e-smith/files/docker'''
    +
===File permissions===
 +
 +
You may have issues writing to local filesystems from Docker images.
 +
 +
First add something like this to your compose file
 +
 +
volumes:
 +
  - /opt/uploads/:/opt/uploads/
 +
 +
You may need to find out what permissions are required.
 +
 +
 +
In RocketChat I had to add a dummy user and group like this
 +
 +
mkdir -p /opt/uploads
 +
chmod 0777 /opt/uploads
 +
 +
I then could upload and check the ID that docker users. I thins case it was 65533
 +
 +
So I then did:
 +
groupadd -g 65553 rocketchat
 +
useradd -s /sbin/nologin -u 65533 -d /dev/null -g rocketchat rocketchat
 +
chmod 0744 /opt/uploads
 +
 +
And then test again.
    
===Using a Docker image===
 
===Using a Docker image===

Navigation menu