Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot build the image !! #43

Open
al-ani opened this issue Sep 29, 2016 · 0 comments
Open

I cannot build the image !! #43

al-ani opened this issue Sep 29, 2016 · 0 comments

Comments

@al-ani
Copy link

al-ani commented Sep 29, 2016

when I try to build the Dockerfile I get these errors:

update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mysql-server (5.7.15-1ubuntu14.04) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
---> f1be1f9aed7e
Removing intermediate container eda4f8a6ae28
Step 24 : RUN /usr/sbin/mysqld & sleep 10s && echo "GRANT ALL ON . TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON . TO 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON . TO 'homestead'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES; CREATE DATABASE homestead;" | mysql
---> Running in ce1d1b1460fa
mysqld: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 18!
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
mysql: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 18!
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
The command '/bin/sh -c /usr/sbin/mysqld & sleep 10s && echo "GRANT ALL ON . TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON . TO 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON . TO 'homestead'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES; CREATE DATABASE homestead;" | mysql' returned a non-zero code: 1

Please, can you figure out what is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant