On 2024-05-09 03:10, Simon Lees wrote:
On 5/8/24 8:50 PM, Carlos E. R. wrote:
On 2024-05-08 03:39, Simon Lees wrote:
On 5/8/24 4:08 AM, Carlos E. R. wrote:
On 2024-05-07 15:56, Simon Lees wrote:
On 5/7/24 9:27 PM, Carlos E. R. wrote:
On 2024-05-07 12:32, Simon Lees wrote:
...
Huh, so what user must be that X?
Apparently in a past life I created a separate user "osuse_cache" that is just part of the "users" group, which on my system has the uid 1001, so I pass that in. In my case that user has permission to read and write to "/your/storage/"
Ok, then I understand I should create a user that owns the storage, and give that user as "-u that_user:that_user"?
Yep, where that_user is the users uid
I have now directory /data/hoard_2/osuse_cache/ owned by user osuse_cache. Tested that the user can write there. Still no go: Isengard:/data/hoard_2/osuse_cache # docker run -p 8080:8080 -v /data/hoard_2/osuse_cache/:/tmp/osuse_cache/ -u osuse_cache:osuse_cache firstyear/opensuse_proxy_cache:latest docker: Error response from daemon: unable to find user osuse_cache: no matching entries in passwd file. ERRO[0000] error waiting for container: Isengard:/data/hoard_2/osuse_cache # tail /etc/passwd | grep osuse osuse_cache:x:1200:100:osuse_cache:/home/osuse_cache:/bin/bash Isengard:/data/hoard_2/osuse_cache # I log out and in, so that the root user rereads the passwd file. Still no go: Isengard:~ # docker run -p 8080:8080 -v /data/hoard_2/osuse_cache/:/tmp/osuse_cache/ -u osuse_cache:osuse_cache firstyear/opensuse_proxy_cache:latest docker: Error response from daemon: unable to find user osuse_cache: no matching entries in passwd file. ERRO[0000] error waiting for container: Isengard:~ # I restart the docker service. No go. Isengard:~ # docker run -p 8080:8080 -v /data/hoard_2/osuse_cache/:/tmp/osuse_cache/ -u osuse_cache:osuse_cache firstyear/opensuse_proxy_cache:latest docker: Error response from daemon: unable to find user osuse_cache: no matching entries in passwd file. ERRO[0000] error waiting for container: Isengard:~ # Changing name of the user osuse_cache, to remove the "_". Still no go. Isengard:~ # docker run -p 8080:8080 -v /data/hoard_2/osuse_cache/:/tmp/osuse_cache/ -u osusecache:osusecache firstyear/opensuse_proxy_cache:latest docker: Error response from daemon: unable to find user osusecache: no matching entries in passwd file. ERRO[0000] error waiting for container: Isengard:~ # Stumbled. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)