Tag: mysql

Web development transition from MAMP to Docker

I am new to Docker and I am having a hard time applying its core technology to my present web development. Using MAMP, you just need to download the app, put your PHP/HTML files on /htdocs, start servers, then go to http://localhost:8888/ to see your webapp. Now, using docker, I’m wondering how can I do […]

Persisting MySQL data in Docker

I am new to Docker. I have successfully created a Docker image with the following Dockerfile: From alpine:3.4 MAINTAINER SomeName – domain.tld # Timezone ENV TIMEZONE Asia/Kolkata # RUN sed -i ‘s#dl-cdn\.alpinelinux\.org#mirrors\.aliyun\.com#’ /etc/apk/repositories # install mysql, apache and php and php extensions, tzdata, wget RUN echo “@community http://dl-cdn.alpinelinux.org/alpine/edge/community” >> /etc/apk/repositories && \ apk add –update […]

Can't connect nodejs and mysql in same docker

I’m new in docker and i’m trying to make my nodejs express run inside it. I’m trying to install the dependencies using shellscript and its working but in the end I can’t connect to mysql. My docker file install mysql, create an user and a database, and install nodejs too. Then it runs npm install […]

Docker MariaDB/Mysql dump

How can i mysqldump from running container on https://hub.docker.com/_/mariadb/ ? I cant find any useful documentation or data? Any method for backup and restore database. This is my my continaer run command : docker run –name myaapp-mariadb -v /databases/maria:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mariadb:10

Permission denied when mounting Docker volume in OSX

I’m at my wit’s end with this, so hopefully you folks can help me. In OSX 10.11.2 with docker-machine, I’ve got a docker-compose file that should build a local Dockerfile and attach a MySQL container to it. The MySQL container should mount a local folder where I’m storing my database data, so if the container […]

mysql_upgrade failed – innodb tables doesn't exist?

I am upgrading my mysql-5.5 docker container database to mysql-5.6 docker container. I was able to fix all other problems. Finally my server is running with 5.6. But when i run mysql_upgrade i am getting the following error. ERROR: root@17aa74cbc5e2# mysql_upgrade -uroot -password Warning: Using a password on the command line interface can be insecure. […]

Docker mysql cant connect to container

I’ve got docker-compose file for creating mysql image and expose port to 3306, but when I try to install CMS, it gives me error that it can’t connect to Database. I try to scan port 3306 and it’s showing me that it’s open so mysql is running. Why the two of docker containers can’t see […]

creating a default database in mysql using dockerfile

Im using this tutum-docker–mysql dockerfile, to get up and running with a docker image with mysql installed in it,the docker file creates a user with the name root and no password, what i need is to add something like this to the dockerfile: RUN mysql -uroot -p”” && mysql create database test; So when I […]

Installing MySQL in Docker fails with error message “Can't connect to local MySQL server through socket”

I’m trying to install mysql inside a docker container,Tried various images from github, it seems they all manage to successfully install the mysql but when I try to run the mysql it gives an error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ System specifications: Ubuntu 12,04 its on AWS Docker […]

Dockerized web app connecting to MySQL DB on host

I want to migrate my application deployment to use docker/docker hub. Current production set up is to load balance traffic across 2 Linux servers, running Apache, Tomcat and MySQL. The Java web application connects to a master+slave MySQL DB via JDBC. To minimize the impact of this change, as a first step I am looking […]

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