Tag: mysql

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 […]

TravisCI – Is it possible to start docker service and expect mysql to work?

I am new to using Travis CI and i am trying to use the MySQL database along with a docker container. I am able to start docker service and run my container or I am able to connect to mysql. But I am not able to do both. MySQL – Works language: bash sudo: required […]

Could number of docker containers be limited by file IO inside containers?

I am trying to stuff as many lamp stack containers inside docker as possible that are running wordpress. According to many sources it is possible to stuff over 500 containers on a docker server, for example: Is there a maximum number of containers running on a Docker host? However, they most likely discuss empty docker […]

Unable to connect to remote MySQL from a docker on Ubuntu Desktop

After much groping in the dark, I think I may have uncovered an Ubuntu Desktop specific docker issue. Please take note of the following: I work at a large corporation where my laptop is connected to internal network (that houses a remote MySQL db). My laptop runs Ubuntu Desktop OS (v14.04). I can connect to […]

owncloud cron execution within docker

Im using php-apache image to create an owncloud installation. I want to use a system cronjob to execute cron.php, therefore I run: RUN echo “*/3 * * * * php -f /var/www/html/cron.php >> /oc_data/cron.log” > /cron.conf \ && crontab -u www-data /cron.conf The entrypoint script starts cron with: cron -f It gets executed but the […]

Initializing database in the base image of a running container

I pulled a mysql:5.5 image from the docker repo which I am using as a base image for my containerized app. After running this application that uses the mysql from the base image, it gives the following error error: database is uninitialized and MYSQL_ROOT_PASSWORD not set Did you forget to add -e MYSQL_ROOT_PASSWORD=… ? How […]

can't connect to mysql docker when mount a directory

I use official mysql 5.5 docker as database container. first pull container: docker pull mysql:5.5 then I run: docker run –name mysqldb -e MYSQL_ROOT_PASSWORD=testword mysql:5.5 it run successfully, and the container mysqldb with ip is 172.17.0.20.And I can access this mysqldb by this: mysql -h 172.17.0.20 -u root -p # this command from 172.17.0.23 input […]

Docker – can not start mysql permission error

I have problem with docker and mysql. I have build an image based on phusion/baseimage. I want to create image where /var/lib/mysql directory is shared with my host (OS X), because I dont want to store my data on container. Everything works fine when directory /var/lib/mysql is not shared. When I share this directory, mysql […]

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