Docker Community Forums

Share and learn in the Docker community.

Docker hangs after running multiple MySQL image with volume data directory more than once


(Giuseppe Maxia) #1

Expected behavior

The containers are responsive.

Actual behavior

Docker hangs! It does not respond to any command.

Information

  • the output of:
    • pinata diagnose -u on OSX

$ pinata diagnose -u
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.1-beta10
Running diagnostic tests:
Error docker ps: timeout after 10.00s
[ERROR] docker-cli docker ps failed: Misc.Failure
[OK] docker-cli
Error docker ps: timeout after 10.00s
Thread 6 killed on uncaught exception Misc.Failure
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Error echo “00000003.0000f3a6” | nc -U /var/tmp/com.docker.vsock/connect > /tmp/20160506-122509/diagnostics.tar: timeout after 30.00s

Steps to reproduce the behavior

(1) Run three MySQL containers, using scripts listed in mysql-replication-samples/docker-replication.
The image used is mysql/mysql-server.

Run this command to start three MySQL containers, using a volume for data directory
The files are created under $HOME/docker/mysql

./deploy-nodes.sh

(2) Then, remove the containers

./remove-nodes.sh

(3) Repeat the above commands a few times. Depending on the amount of RAM assigned to Docker, operations may succeed a few times before failing.

Running the same operations without volumes ( export SKIP_VOLUME=1) will run many times without failures.