Tag: mysql

Mysql python connector is unavailable when running pip install –allow external

While using Python 3.4 in a docker container, I have been using pip install mysql-connector-python –allow-external mysql-connector-python to install the dependency on new containers. Suddenly, however, the command fails saying “Could not find any downloads that satisfy the requirement”. I checked pypi and the dependency is still there, but for some reason pip can’t find […]

docker.io – Connecting to MySQL with Scala

I am new to Docker. Currently, I am trying to connect my Scala container with a MySQL container but just can’t find any resources on how I can do it. Is it able for me to create a JDBC connection on the Scala container and connect to the MySQL container using the linking method? https://docs.docker.com/userguide/dockerlinks/#docker-container-linking […]

Docker – Rollback data in MySQL container after recreating

“With docker images we can keep both the previous image and the new image on an instance at the same time. Since the previous images are still on the instance, rollbacks are just a matter of restarting the container pointing to the previous image.” Hi I’m new to Docker and am planning to use MySQL […]

Why docker start is much faster than docker run

I use mysql image that start with this command docker run –name test-mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d -p 3306:3306 mysql when docker run in background, It takes about a minute for another application can connect to port 3306. After that I stop this container with docker stop test-mysql and then start it with docker start test-mysql. […]

Docker container nodejs connection to external mysql fail

My nodejs application is connecting to mysql externally, it is all good if i start interactively by docker run -p 49160:8080 -t -i <image>, and run nodejs /src/server.js manually. However, when i start with daemon docker run -p 49160:8080 -d <image>, it will fail to connect to the external mysql. Tried docker start <container> and […]

Mysql in a separate container or in the same [closed]

So, I am buildin a docker container for a django app and after reading a decent amount on the internet I found out that I can either include in docker-compose.yml an already made image for Mysql or I can include it in the container of the app. I was wondering what are the positive sides […]

What should a dockerfile contain to run a simple CRUD web application?

I am studying Docker and to understand better, I want to use it to run a Java web application that I created a while ago. It uses Java, Spring, Hibernate on back-end and Spring MVC on front-end, and MySQL as a database. In Eclipse, it can be easily run on Tomcat and opened in a […]

How do I start a group of containers, keep them running, then begin an identical process in each container

As part of an application stress test, I need to start 200 Docker containers, keep all containers alive until the creation process is complete, then issue a command to each container to begin a process that will stress test a server. Each container must run two processes … multiple SFTP file transfer and multiple writes […]

Docker container with MySQL not writing in the log file

I am working on an existing Dockerfile that I have been asked to modify as less as possible. The docker image is based on a CentOS Linux image and is supposed to contain a MySQL service. I want to enable the verbose logging for all the queries (i.e. general_log and general_log_file variables on the /etc/my.cnf […]

docker Django runserver blocks binaries connecting to MySQL DB

I have a Django app running inside docker which use MySQL DB and it is working totally fine. I got several Python binaries which I need to run in docker while ./manage.py runserver is running. But running binaries give me following error. django.db.utils.OperationalError: (1045, “Access denied for user ‘web’@’’ (using password: YES)”) The error is […]

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