SELinux fix for Mergerfs to allow Docker and Samba access

I recently started using Snapraid and Mergerfs setup to manage my disk pool. I have ~27TB of raw storage which I am managing. While setting up Mergerfs as usual ran into SELinux issues that will prohibit Docker and Samba access to the storage. So, here’s my fix. Samba setsebool -P samba_share_fusefs=1 Docker setsebool -P virt_sandbox_use_fusefs=1

Docker Container for SMTP Relay

SMTP Relay service allows you to use an external SMTP server to send your mails through. After many frustrating hours of working with several SMTP Relay Docker Images, I finally found the one that works. Link: https://hub.docker.com/r/tecnativa/postfix-relay/ Configuration is very easy; Sample Run script docker run \ –name name\ -d \ –restart=always \ -p localport:25 \ -e “MAIL_RELAY_HOST=smtpserver” \ -e …

Read moreDocker Container for SMTP Relay

Docker Transmission Container with Windscribe VPN

Found this awesome container that has Transmission with VPN support which I can use with Windscribe VPN. Docker Hub Link – https://hub.docker.com/r/haugene/transmission-openvpn/ Run command: docker run \ –name somename\ –restart=always \ –cap-add=NET_ADMIN \ –device=/dev/net/tun \ -d \ -v localdir:/data:z \ -v /etc/localtime:/etc/localtime:ro \ –log-driver json-file \ –log-opt max-size=10m \ -p localport:9091 \ –dns 8.8.8.8 –dns 8.8.4.4 \ -e “OPENVPN_PROVIDER=WINDSCRIBE” \ …

Read moreDocker Transmission Container with Windscribe VPN

Fixing Random Samba Share Lockouts Part 2 w/Docker

Continuation of my previous post about fixing random Samba Share lockouts. I discovered that Docker and Samba were fighting to gain access to the folders. If I set the label to samba_share_t, then Docker loses access. If I allow Docker (with “Z” option while running container), then Docker resets the label to “svirt_sandbox_file_t”. How can I make both use it? …

Read moreFixing Random Samba Share Lockouts Part 2 w/Docker