Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
added default password
Browse files Browse the repository at this point in the history
  • Loading branch information
fermayo committed Dec 11, 2013
1 parent 68f5b0c commit 13ec579
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ADD ./set_root_pw.sh /set_root_pw.sh
RUN chmod 755 /set_root_pw.sh
ADD ./import_sql.sh /import_sql.sh
RUN chmod 755 /import_sql.sh
RUN /set_root_pw "changeme!now!"

EXPOSE 3306
CMD ["/run.sh"]
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Base docker image to run a MySQL database server
Usage
-----

To create the image `tutum/docker-mysql`, execute the following command on the tutum-docker-mysql folder:
To create the image `tutum/mysql`, execute the following command on the tutum-mysql folder:

sudo docker build -t tutum/docker-mysql .
sudo docker build -t tutum/mysql .

The default password is `changeme!now!`


Mounting the database file volume
Expand All @@ -29,7 +31,7 @@ Initializing the server

To set your initial root password, run:

ID=$(sudo docker run -d tutum/docker-mysql /bin/bash -c "/set_root_pw.sh <newpassword>")
ID=$(sudo docker run -d tutum/mysql /bin/bash -c "/set_root_pw.sh <newpassword>")

Where `<newpassword>` is the password to be set for the root account. It will store the new container ID (like `d35bf1374e88`) in $ID. To create an image from that, execute:

Expand Down

0 comments on commit 13ec579

Please sign in to comment.