Update OS packages from a database container

3

I am redoing a Zabbix server here in the company, where I will upgrade from version 3.2 to 4.0

I'm thinking of using docker to make life easier, since in DockerHub I have images for Zabbix-Server, for Zabbix-Web, and I intend to use the official MySQL5.7 image as a database server.

But here comes the doubt

When I upgrade the OS and Database packages to the MySQL container, it is not easy to move all the database data, which easily reaches 50Gb for another container.

What would be the most appropriate solution?

    
asked by anonymous 12.12.2018 / 17:03

2 answers

0

You have to work with volumes to save the data outside the container, when you upgrade it only changes the image of the container, but the data is the same

    
21.12.2018 / 03:03
0

Accurate volumes are the best way to work with sensitive information, but be aware that if your Zabbix components run within a cluster you need networked volumes (NFS) because the containers may not be initialized on the host you have the volumes, if a simple docker machine is happy with the volumes.

This link explains well how to do and with volumes:

link

    
21.12.2018 / 12:06