Change docker storage driver on Mac OS X

I installed the docker toolbox on my Mac OS X and I need to change the docker storage driver from aufs to devicemapper, because aufs causing problems.

I found the offical documentations of docker and tried it the way explained here, but DOCKER_OPTS="--storage-driver=devicemapper" doesn’t work for me.

  • Simple Shell Script: Dead Docker Containers
  • What is the replacement for `--net=container` in new docker networking?
  • how to restore mongodb data after my mongdb container has been removed
  • How to pass parameters while creating consul client agent inside a Docker container?
  • Command run on bash but not from nginx conf exec
  • Docker Error: container id followed by “command not found”
  • docker info still tells me Storage Driver: aufs.

    I didn’t managed to find the file located at /etc/default/docker as well.

    For the record, I need to changed it in order to run CodeClimate CLI properly.

  • Getting an “operation not supported” error when trying to RUN something while building a docker image
  • Mesos+ZooKeeper don't work fine
  • How to use the latest Dart unstable in a Dockerfile?
  • Troubleshooting using xvfb and nightwatch
  • Boot a docker container from PXE
  • Docker for Mac Host Networking
  • One Solution collect form web for “Change docker storage driver on Mac OS X”

    You can use the --engine-storage-driver flag when you create a new VM with docker-machine to choose a storage driver.

    $ docker-machine create -d virtualbox \
        --engine-storage-driver devicemapper \

    docs reference

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