Tag: mysql

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”: “”, “IPAddress”: “”, “IPPrefixLen”: 16, “MacAddress”: “02:42:ac:11:00:0d”, “PortMapping”: null, “Ports”: { “9000/tcp”: [ { “HostIp”: “”, “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 mysql And the result is: e7e8d812163bfcc333f24bdad23b67382fdb5b9ca57e75cb65d8ed0feb4e2dc3 Error response from daemon: Cannot start container e7e8d812163bfcc333f24bdad23b67382fdb5b9ca57e75cb65d8ed0feb4e2dc3: Error starting userland proxy: listen tcp 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 mysql start failed, unable to create temporary file, permission denied

ubuntu 14.04 docker 1.8.2 mysql is latest official image here is my command vm:~$ docker run –name mysql -d -e MYSQL_ROOT_PASSWORD=123456 mysql and the tips: Running mysql_install_db 2015-09-22 08:42:13 0 [Note] /usr/sbin/mysqld (mysqld 5.6.26) starting as process 15 … 2015-09-22 08:42:13 15 [Note] InnoDB: Using atomics to ref count buffer pool pages 2015-09-22 08:42:13 15 […]

Using mysql image from docker

I am trying to use the available mysql tags from this doc. I am using the following command to download the image docker run –name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag But when I run this image with sudo docker run mysql:tag it gives the following error error: database is uninitialized and MYSQL_ROOT_PASSWORD not set Did […]

Persistent mysql data from docker container

How can I persist data from my mysql container? I’d really like to mount /var/lib/mysql from the container to the host machine. This indeed creates the directory, but when I create data, stop my application, and start a new one with the mounted directory, nothing is there. I’ve messed around with giving the directory all […]

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