MattProd
Déjà merci d'avoir pris le temps de me repondre.
J'ai essayé de regarder ce que tu proposais, du coup, en regardant via la console du container :
ec154636edb1:/# cd /run/
ec154636edb1:/run# ls
lock nginx php rtorrent
ec154636edb1:/run# ls -al
total 24
drwxr-xr-x 1 torrent torrent 4096 May 25 05:40 .
drwxr-xr-x 1 root root 4096 May 25 06:01 ..
drwxr-xr-x 1 torrent torrent 4096 Feb 13 23:04 lock
drwxr-xr-x 1 torrent torrent 4096 May 25 06:08 nginx
drwxr-xr-x 1 torrent torrent 4096 May 25 06:08 php
drwxr-xr-x 2 torrent torrent 60 May 25 06:08 rtorrent
ec154636edb1:/run# ls -al php/
total 12
drwxr-xr-x 1 torrent torrent 4096 May 25 06:08 .
drwxr-xr-x 1 torrent torrent 4096 May 25 05:40 ..
srw-rw---- 1 torrent torrent 0 May 25 06:08 php83-fpm.sock
ec154636edb1:/run# ls -al rtorrent/
total 8
drwxr-xr-x 2 torrent torrent 60 May 25 06:08 .
drwxr-xr-x 1 torrent torrent 4096 May 25 05:40 ..
srw-rw---- 1 torrent torrent 0 May 25 06:08 rtorrent.sock
si maintenant je regarde là où j'ai mappé le tout
root@gormbox:/run# ls -al rtorrent-gormson/
total 0
drwxr-xr-x 2 gormson gormson 60 May 25 08:08 .
drwxr-xr-x 29 root root 920 May 30 15:35 ..
srw-rw---- 1 gormson gormson 0 May 25 08:08 rtorrent.sock
j'ai donc bien les bons droits à la fois sur le dossier mais aussi sur le fichier rtorrent.sock
du coup j'ai suivi ton conseil en simplifiant le bind en métant directement le dossier data :
#!/usr/bin/env sh
docker run -it --rm \
-e PHP_MEMORY_LIMIT=128M \
-e PHP_TIMEZONE=Europe/Paris \
--network npm-proxy \
--link gormson-rutorrent:rtorrent \
-v /home/gormson/data:/data \
-v /run/rtorrent-gormson/rtorrent.sock:/run/rtorrent/rtorrent.sock \
magicalex/rtorrent-cleaner $*
Et ça a enfin marché !! 🙂 🙂
Donc un grand merci de m'avoir fait prendre un peu de recul 😁