osx - MySQL service inside docker container not working in macOS Sierra 10.12.6 -




i forced reinstall macos sierra because in beta program high sierra , serious crash downgraded system.

this dockerfile working in high sierra before sudden crash of system.

from ubuntu:16.04 maintainer xxx version 0.0.1  # prepare debian environment env debian_frontend noninteractive # don't need apt cache in container run echo "acquire::http {no-cache=true;};" > /etc/apt/apt.conf.d/no-cache  # ---------------------------- # configure supervisor # ---------------------------- run apt-get update > /dev/null 2>&1 && apt-get install -y supervisor > /dev/null 2>&1 run mkdir -p /var/log/supervisor copy files/supervisord.conf /etc/supervisor/conf.d/supervisord.conf  ## mysql run apt-get install -y mysql-client > /dev/null 2>&1 #run debconf-set-selections <<< 'mysql-server mysql-server/root_password password 1234' #run debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password 1234' run echo 'mysql-server mysql-server/root_password password 1234' | debconf-set-selections run echo 'mysql-server mysql-server/root_password_again password 1234' | debconf-set-selections run apt-get -y install mysql-server > /dev/null 2>&1 run sed -i -e 's/127.0.0.1/0.0.0.0/g' /etc/mysql/mysql.conf.d/mysqld.cnf run echo "sql_mode=no_engine_substitution,strict_trans_tables,no_zero_in_date" >> /etc/mysql/mysql.conf.d/mysqld.cnf run usermod -d /var/lib/mysql/ mysql mys add files/xxx.dump /tmp/xxx.dump add files/mysql_xxx.sql /tmp/mysql_xxx.sql  run service mysql start && \     mysql -uroot -p1234 < /tmp/mysql_xxx.sql  run rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* run apt-get clean  expose 3306  cmd ["/usr/bin/supervisord"] 

now, reinstalling things not work, outputs same error:

starting mysql database server mysqld ...fail!

to add information, in step dockerfile stops starting service dump database.

my system version macos sierra 10.12.6 (16g29) , docker version 17.06.0-ce-mac19 (18663). workaround problem?

you should using official mysql dockerfile starting point. either use mysql image itself, from mysql:5.7 dockerfile or can copy dockerfile , docker-entrypoint,sh their github "take control" of mysql image , not have dependency on mysql releases/changes.

i think idea use same os base docker containers, using ubuntu distro, if not mind or getting started may want have debian os base. because docker images have looked far, cloudbee's jenkins, .net core, asp.net core , mysql have debian base been thinking debian popular os base docker images though have anecdotal evidence of obviously.

my company prefers centos distro, took official mysql dockerfile , converted work centos:7, pain.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -