Open joachimmueller opened 9 years ago
Hi @joachimmueller if you want to do a backup and upgrade the container you can:
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.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 the entrypoint
script changed, please execute the command bellow instead.
sudo docker run --volumes-from=zabbix --entrypoint='' -i -t berngp/docker-zabbix shell
Thanks. I ran into #12 running on CoreOS and am attempting to salvage what I can.
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.