Answer the question
In order to leave comments, you need to log in
Why is docker commit not working?
Good afternoon, what is the problem?
1)Commit works strangely
2) Zabbix only works with 5.7 mysql otherwise
Change authentication scheme? but there is no /usr/local/etc/mysql/my.cnf file
I decided to transfer zabbix to the container
I just do everything
docker run --name servermysql -e MYSQL_DATABASE=zabbix -e MYSQL_USER=zabbix -e MYSQL_PASSWORD=zabbix -e MYSQL_ROOT_PASSWORD=zabbix - d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin
docker run --name serverzabbix -e DB_SERVER_HOST=servermysql -e MYSQL_DATABASE=zabbix -e MYSQL_USER=zabbix -e MYSQL_PASSWORD=zabbix -e MYSQL_ROOT_PASSWORD= zabbix --link servermysql:servermysql -p 10051:10051 -d zabbix/zabbix-server-mysql:latest
docker run --name serverweb -e DB_SERVER_HOST=servermysql -e MYSQL_DATABASE=zabbix -e MYSQL_USER=zabbix -e MYSQL_PASSWORD=zabbix -e MYSQL_ROOT_PASSWORD=zabbix --link servermysql:servermysql --link serverzabbix:serverzabbix -p 80:80 -d zabbix/zabbix-web-apache-mysql Everything starts
and works, only with mysql 5.7 - in other cases, do not authenticate .....
I create tables, users, a couple of heatplates in zabbix.
I want it all commit
docker commit b9d0c7a8f7b9 1:1
docker commit d0b0a5f53914 2:2
docker commit 82fee5026f60 3:3 I
start new images
docker run --name servermysql -d 1:1
docker run --name serverzabbix --link servermysql:servermysql -p 10051:10051 -d 2:2
docker run --name serverweb --link servermysql:servermysql --link serverzabbix:serverzabbix -p 80:80 -d 3:3
But as it turns out, after running everything is empty on them
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question