Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

docker-machine provisions docker to use aufs on debian jessie which is not supported #3895

Open
raarts opened this issue Nov 27, 2016 · 7 comments

Comments

@raarts
Copy link

raarts commented Nov 27, 2016

docker-machine version 0.8.2, build e18a919
host machine: Debian Jessie 8.4

command used: docker-machine create -d generic --generic-ip-address=x.x.x.x --generic-ssh-key ~/.ssh/id_rsa node-1

This results in Error starting daemon: error initializing graphdriver: driver not supported and docker-machine failing.

@nathanleclaire
Copy link
Contributor

hmm... odd... jessie should support the AUFS patch just fine...

@nathanleclaire
Copy link
Contributor

can you post the full docker-machine --debug output?

@ldumont
Copy link

ldumont commented Jan 6, 2017

I had the same kind of trouble last year when I tried to do the same, but I gave it another try this week and I was able to make it work.

docker-machine version 0.8.2
Jessie 8.6 kernel 3.16 => straightforward setup
Jessie 8.6 kernel 4.8.11 from backports => need to add --engine-storage-driver overlay otherwise aufs is used and it's not supported in recent kernels

I don't know if something change since last year but I was not able to make it work, so give it another try !

@raarts
Copy link
Author

raarts commented Jan 6, 2017 via email

@dminkovsky
Copy link

Related #4016 #4156

@jak
Copy link

jak commented Jul 14, 2017

Creating machines on Google Cloud platform currently fails due to this.

@luckydonald
Copy link

luckydonald commented Nov 29, 2017

Is it somehow possible to manually set something else?
Machine creates one with aufs, which is the platform default

/etc/systemd/system/docker.service.d/10-machine.conf

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=generic
Environment=

Edit:
Executing

sed -i "s@--storage-driver aufs@--storage-driver overlay2@g" /etc/systemd/system/docker.service.d/10-machine.conf

several times on the host, while docker-machine displays

Setting Docker configuration on the remote daemon...

seems to solve it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants