Npm fails to install palettes if docker volume is on a usb flash drive

I cannot install new palettes if the container volume is located on a flash drive, because, npm doesn't have the right permissions to access. Can you help me?

# docker-compose.yml

  node-red:
    container_name: node-red
    image: nodered/node-red:latest
    restart: unless-stopped
    environment:
     - TZ=Europe/Rome
    network_mode: "host"
    ports:
     - "1880:1880"
    volumes:
     - /media/data/node-red:/data  <---- MY USB FLASH DRIVE (FAT32 - vfat)
#    - /home/pi/data/node-red:/data.  <<-- default place 
    user: 1000:1000
    depends_on:
#     - homeassistant
     - mosquitto 

OS is raspian lite on a pi4 and the usb drive is mount at boot with options:

# /etc/fstab
uid=1000,gui=1000,umask=000,users,rw

Thanks in advance
crc

I solved, vfat doesn't support system links, so I changed the fs on the drive to ext3 and everything works now

1 Like