4

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.

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.

David Renz
  • 355
  • 3
  • 15
  • Possible duplicate of [Change storage driver for Docker on OS X](https://stackoverflow.com/questions/39455764/change-storage-driver-for-docker-on-os-x) – Dima Tisnek Aug 13 '17 at 22:19

2 Answers2

2

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 \
    foobarmachine

docs reference

Kevan Ahlquist
  • 5,375
  • 1
  • 17
  • 25
0

Modifying the storage-driver is not supported on Docker Desktop for Mac and Docker Desktop for Windows, and only the default storage driver can be used.

Docker documentation

Allan K
  • 379
  • 2
  • 13