MySQL upgrade done right

Ok, so out of a random urge to get a new version of mysql for my docker image which was showing  last updated 12 months ago, I changed the Dockerfile build to use the latest version of mysql. This means that I would go from 5.7 to 8.x. Well, of course I thought it would be as easy as using mysql:latest, restarting the container and all my databases would magically appear, guess not! So, if …

Read moreMySQL upgrade done right

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 “MAIL_RELAY_PORT=port#” \ -e “MAIL_RELAY_USER=user” \ -e “MAIL_RELAY_PASS=post” \ tecnativa/postfix-relay After this you will have a …

Read moreDocker Container for SMTP Relay

Docker Container for phpMyAdmin

Been containerizing a lot of my tools and just added phpMyAdmin to that list. It’s very easy to get going with it esp. if you also happen to have a Docker container running MySQL albeit with one minor issue. Official docker hub page: https://hub.docker.com/r/phpmyadmin/phpmyadmin/ Use an example Docker Run script below docker run \ –name name \ –restart=always \ -d \ –link mysqlcontainer:mysql \ -p localport:80 \ -e “PMA_HOST=mysqlcontainer” \ phpmyadmin/phpmyadmin localport is the port …

Read moreDocker Container for phpMyAdmin

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” \ -e “OPENVPN_USERNAME=user” \ -e “OPENVPN_PASSWORD=pass” \ -e “OPENVPN_CONFIG=US-East-tcp” \ -e “LOCAL_NETWORK=iprange” \ -e “TRANSMISSION_WEB_UI=combustion” \ …

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? Turns out there is a solution. Credit to this Serverfault post: https://serverfault.com/a/881098/449814 Create a new …

Read moreFixing Random Samba Share Lockouts Part 2 w/Docker