docker-zabbix icon indicating copy to clipboard operation
docker-zabbix copied to clipboard

Use external DB for upgrade and backup

Open joachimmueller opened this issue 9 years ago • 4 comments

How to upgrade an existing docker image? The Zabbix docs describe the upgrade procedure here:

https://www.zabbix.com/documentation/2.4/manual/installation/upgrade

To do as described it would be necessary to use an external DB with the docker container. This would also enable more easier backup of the zabbix data.

joachimmueller avatar Mar 31 '15 10:03 joachimmueller

Hi @joachimmueller if you want to do a backup and upgrade the container you can:

  1. stop the container.
  2. Use the approach that docker-backpu suggests to create a backup.
  3. Do docker run --volumes-from=zabbix --entrypoint='' -i -t docker-zabbix shell where zabbix is your Zabbix Docker Container's name and docker-zabbix is the name of the image used by your Zabbix Docker Container. After doing that you will be running in a container that has the same software as your Zabbix Docker Container but you will be inside the Bash Shell and therefore able to execute any MySQL command, which includes upgrading the DB.

berngp avatar Jun 01 '15 22:06 berngp

Just an FYI, the sequence above does not work:

[bcochran@01 ~]$ sudo docker run --volumes-from=zabbix --entrypoint='' -i -t berngp/docker-zabbix /bin/bash
Usage: /bin/docker-zabbix {start|stop|restart|shell|status|summary}

azurewraith avatar Aug 06 '15 17:08 azurewraith

@azurewraith the entrypoint script changed, please execute the command bellow instead.

 sudo docker run --volumes-from=zabbix --entrypoint='' -i -t berngp/docker-zabbix shell

berngp avatar Aug 06 '15 17:08 berngp

Thanks. I ran into #12 running on CoreOS and am attempting to salvage what I can.

azurewraith avatar Aug 06 '15 18:08 azurewraith