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.

  • How to ship java based web application in AWS cloud using docker
  • docker can't connect to boot2docker because of tcp timeout
  • 502 Bad Gateway when accessing virtual host via Jwilder's Nginx proxy
  • How can I run multiple statements using json array format for Docker ENTRYPOINT?
  • EF Core migrations using core, SQL Server and Docker yields dotnet SDK error
  • Does docker image hide my source code?
  • 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.

  • Makefile hangs when docker-compose -d is used and fails with code 129 without -d
  • Bluemix Unable to connect or ping to container
  • How to get .CSV file into local machine from Docker image of Cassandra database
  • How to restart a single container with docker-compose
  • ERROR - Docker-compose/docker Windows
  • Is it possible to run a VPN client inside a docker container?
  • 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.