and mysql container losing all data after stopping services

I have a fig setup that is so inconsistent that is driving me nuts. At random times between stopping services and restarting it loses the mysql data that was created. I tried with data only containers and linking them with volumes_from and even setting the volumes directive. Last night my computer froze and I had to issues a restart only to find out that all my mysql data was lost when issuing a fig up command.

I really like the idea of orchestrating things up and not having to install local services such as mysql or elasticsearch locally but this inability to maintain a persistent database is quite irritating.

  • Docker and Java 9 modules
  • Hostname for website running inside Docker
  • Docker SCRATCH container can't find files
  • Docker: how to update changes in php.ini inside of container
  • how to schedule job with the monitoring of cpu,memory, disk io, etc.
  • Using COPY on dockerfile for apache build
  • I updated both docker and fig to latest versions without any kind of success. Here’s my fig config, maybe someone can spot something I’m doing wrong:

      image: redis:latest
        - /var/devcasts/data/redis:/data
      image: mysql:latest
       - 3306
        MYSQL_DATABASE: mydb
        MYSQL_ROOT_PASSWORD: ********
        - ./dbbackup:/dbbackup
        - /var/devcasts/data/mysql:/var/lib/mysql
      image: dockerfile/elasticsearch
        - /var/devcasts/data/elasticsearch:/data
      build: .
      command: ./
        DEBUG: 1
        - .:/code
        - "8000:8000"
        - mysql
        - redis
        - elasticsearch

    I’m using a mac with boot2docker by the way but I think I had this problem when trying inside a vagrant ubuntu as well.

  • how to provide environment variables to AWS ECS task definition?
  • Gitlab links to “https://gitlab/”
  • Azure App hosted docker port 25
  • Kubernetes with Vagrant nodes won't register
  • determine OS distribution of a docker image
  • RabbitMQ cluster with docker on different servers
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.