fideloper / docker-mysql Goto Github PK
View Code? Open in Web Editor NEWA Docker container for MySQL
A Docker container for MySQL
Hi, I'm really new in docker, is there any chance you can give an example, on how to create a database using the setup.sh file?
based on explanation, i should be able to edit the included build/setup.sh so it creates a database, user and password to my needs,
Thanks a lot.
Step 14 : RUN chmod -R 755 /var/lib/mysql/
---> Using cache
---> b11ba243d27d
Step 15 : ADD build/setup.sh /etc/mysql/mysql_setup.sh
2014/06/21 15:02:37 build/setup.sh: no such file or directory
could not find the file build/setup.sh
.
While i am running docker build -t postgres /vagrant/docker/mysql
i got the below error
2014/10/01 12:16:48 The command [/bin/sh -c mkdir /etc/service/mysql] returned a non-zero code: 1
Keep in mind that i am using vagrant virtual machine.Inside the virtual machine i am creating the mysql container.
Please help me to resolve this issue
I'm trying to link an app with this db container. The setup seems fine as I can ping the db container from the app container, and I can connect to mysql from the db container.
But if I try to access the db container from the app using the default root/root credentials I receive an error: Host '172.17.0.92' is not allowed to connect to this MySQL server.
Should this work "out of the box", or do I need to change the permissions of root and/or create a new db user?
Thanks!
https://gist.github.com/cordoval/0a2894a374e92daffe20
steps to reproduce
ssh into the container and
root@6f45a1df58f5:~# cat /var/log/mysql/error.log
and you will see the error on the SQL generated somewhere somehow
There can be only one CMD command in the Dockerfile and you have 2 so the normal init does not happen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.