I created a new Dockerfile for MySQL on Fedora today. It's posted
here: Github
and here: FedoraHosted
Here's how you run it:
# docker build -rm -t <username>/MySQL .
Run it:
# docker run -d -p 3306:3306 <username>/MySQL
Get container ID:
# docker ps
Keep in mind the password set for MySQL is: mysqlPassword
Get the IP address for the container:
# docker inspect <container_id> | grep -i ipaddr
For MySQL:
# mysql -h 172.17.0.x -utestdb -pmysqlPassword
Here's what it looks like:
No comments:
Post a Comment