Tag: mysql

Possible to run two instances of docker containers on one mysql database container?

There are three containers Container A : web server Container B : replicate web server of Container A Container Z : mysql datastore container for Container A Can I run Container A and B at the same time using Container Z as mysql datastore? will it corrupt mysql data store? Runtime of the containers below: […]

How can I set up a mysql slave in Docker?

I have a vagrant VM (192.168.50.4) running Ubuntu 14.04 with MySQL master (listening on 0.0.0.0:3306). I would like to set up a slave inside a Docker container. I’ve managed to do this, but I can’t get the slave to communicate with the master on port 3306 for the purposes of replication: root@foo:/# telnet 172.17.42.1 3306 […]

Debian : Using a cron task on Docker

I am using docker with docker compose on my server (debian 7.5). I have 1 mysql container and one postgresql container for 2 applications. When i want to create a backup of my database (for example for the database “mydb” from my mysql container) I do like this : docker exec -it <my_container_id> mysqldump –opt […]

Managing mysql users in a Docker environment

My goal is to create the following: one nginx container as a single entry point which will load balance amongst N node containers (APIs). one MySQL container (ultimately I will run replicas as well, not sure if this is related the problem). many API containers that will connect to the mysql container Based on my […]

HHVM inside Docker and MySQL (outside) on host

I setup HHVM inside Docker on cPanel server with this configuration: http://wiki.mikejung.biz/HHVM Section – “How to run HHVM in a Ubuntu docker container on cPanel” My Docker configuration is: “Name”: “/sad_wozniak”, “NetworkSettings”: { “Bridge”: “docker0”, “Gateway”: “172.17.42.1”, “IPAddress”: “172.17.0.13”, “IPPrefixLen”: 16, “MacAddress”: “02:42:ac:11:00:0d”, “PortMapping”: null, “Ports”: { “9000/tcp”: [ { “HostIp”: “0.0.0.0”, “HostPort”: “9000” and […]

Can't connect to Amazon RDS from Docker container

I’ve created a Docker container which is running fine, except the part where I want to connect to an Amazon RDS instance. I can connect fine from my MySQL Client and the RDS instance is running fine. Somehow I can’t connect from my Docker Container. I get the following error: SQLSTATE[HY000] [2005] Unknown MySQL server […]

Change Container Assigned IP address

I want to create a container with its own static IP address. I am using this command: $sudo docker run -d -p 172.17.0.55::3306 mysql And the result is: e7e8d812163bfcc333f24bdad23b67382fdb5b9ca57e75cb65d8ed0feb4e2dc3 Error response from daemon: Cannot start container e7e8d812163bfcc333f24bdad23b67382fdb5b9ca57e75cb65d8ed0feb4e2dc3: Error starting userland proxy: listen tcp 172.17.0.55:32827: bind: cannot assign requested address where it went wrong??

netcat for MySQL connection forwarding

This question is in relation to Dockerized web app connecting to MySQL DB on host I am trying to open up a connection from a docker container to the host to support MySQL connections. The way I understand it I should be able to execute the following in my container nc.traditional -l -p 3306 -c […]

Docker container link for mysql to redmine fails with timeout “waiting for database server to accept connections”

I’m trying to get my redmine site up and running again. For which we have two docker containers. one contains the database mysql, and the other the website – Redmine. mysql should be start first nohup docker run –name mysql -v /opt/mysql/data:/var/lib/mysql -p 3306:3306 7e0828bb2e6e & [1] 27673 root@atd-ciso:/# docker ps CONTAINER ID IMAGE COMMAND […]

Socket error from within Rails app in Docker container connecting to remote MySQL DB

I have a rails app (running in production mode) in a docker container linked to another container running a MySQL server instance. The app itself is running under nginx/passenger as the “app” user. I’ve configured the production database under rails as follows: production: adapter: mysql database: <%= ENV[‘MYSQL_PRODUCTION_DATABASE’] %> pool: 5 username: <%= ENV[‘MYSQL_USER’] %> […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.