Change docker storage driver on Mac OS X

我的未来我决定 提交于 2019-12-01 19:51:36

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/36845691/change-docker-storage-driver-on-mac-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!