Dockerd –graph / – data-root non sembra funzionare con systemd

Dopo aver aggiunto:

-g /vagrant/lib/docker 

Ottengo questi errori quando tento di riavviare dockerd :

 ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2017-08-03 21:20:50 UTC; 1s ago Docs: https://docs.docker.com Process: 6495 ExecStart=/usr/bin/dockerd -g /vagrant/lib/docker -H fd:// (code=exited, status=1/FAILURE) Main PID: 6495 (code=exited, status=1/FAILURE) CPU: 61ms Aug 03 21:20:50 badger systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE Aug 03 21:20:50 badger systemd[1]: Failed to start Docker Application Container Engine. Aug 03 21:20:50 badger systemd[1]: docker.service: Unit entered failed state. Aug 03 21:20:50 badger systemd[1]: docker.service: Failed with result 'exit-code'. Aug 03 21:20:50 badger systemd[1]: docker.service: Service hold-off time over, scheduling restart. Aug 03 21:20:50 badger systemd[1]: Stopped Docker Application Container Engine. Aug 03 21:20:50 badger systemd[1]: docker.service: Start request repeated too quickly. Aug 03 21:20:50 badger systemd[1]: Failed to start Docker Application Container Engine. Aug 03 21:20:50 badger systemd[1]: docker.service: Unit entered failed state. Aug 03 21:20:50 badger systemd[1]: docker.service: Failed with result 'exit-code'. 

Ecco un estratto del file di configuration per systemd:

 [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker ExecStart=/usr/bin/dockerd -g /vagrant/lib/docker -H fd:// 

lsb_release:

 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 17.04 Release: 17.04 Codename: zesty 

 [email protected]:~$ mount | grep vagrant /dev/mapper/vagrant--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) /dev/mapper/vagrant--vg-root on /var/lib/docker/aufs type ext4 (rw,relatime,errors=remount-ro,data=ordered) vagrant on /vagrant type vboxsf (rw,nodev,relatime) 

Il grafico non functionrà /vagrant . È ansible scegliere qualsiasi altra cartella e dovrebbe funzionare. Il problema è perché questo è diverso da una cartella normale, è condivisa e sincronizzata tra Host e VM.

Come potete vedere il tipo come vboxsf. Questa cartella montata non si comport allo stesso modo. E dunque i volumi del docker e il grafico di banco montato su questo si comportno anche stranamente. Non so cosa sia esattamente diverso, ma so che non funziona. Se qualcuno conosce la differenza esatta, fai un commento