Virtualbox & Docker, monte a pasta compartilhada

0

o que estou tentando fazer é configurar uma pasta compartilhada em uma VB-VM. que será usado para os diretórios de volumes para o docker.

Meu fstab é assim:

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/docker--vg-root /               ext4    errors=remount-ro 0       1
/dev/mapper/docker--vg-swap_1 none            swap    sw              0       0
docker-volumes /var/lib/docker/volumes  vboxsf  rw      0       0

Mas quando eu faço isso, eu recebo o seguinte erro quando eu faço o serviço docker start

May 09 20:32:32 docker systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILUR
May 09 20:32:32 docker systemd[1]: Failed to start Docker Application Container Engine.
May 09 20:32:32 docker systemd[1]: docker.service: Unit entered failed state.
May 09 20:32:32 docker systemd[1]: docker.service: Failed with result 'protocol'.
May 09 20:32:32 docker systemd[1]: docker.service: Service hold-off time over, scheduling restart.
May 09 20:32:32 docker systemd[1]: Stopped Docker Application Container Engine.
May 09 20:32:32 docker systemd[1]: docker.service: Start request repeated too quickly.
May 09 20:32:32 docker systemd[1]: Failed to start Docker Application Container Engine.
May 09 20:32:32 docker systemd[1]: docker.service: Unit entered failed state.
May 09 20:32:32 docker systemd[1]: docker.service: Failed with result 'protocol'.

ls -l / var / lib / docker /

drwx------ 2 root root 4096 May  9 19:49 builder
drwx--x--x 3 root root 4096 May  9 19:49 containerd
drwx------ 2 root root 4096 May  9 19:49 containers
drwx------ 3 root root 4096 May  9 19:49 image
drwxr-x--- 3 root root 4096 May  9 19:49 network
drwx------ 3 root root 4096 May  9 20:24 overlay2
drwx------ 4 root root 4096 May  9 19:49 plugins
drwx------ 2 root root 4096 May  9 20:32 runtimes
drwx------ 2 root root 4096 May  9 19:49 swarm
drwx------ 2 root root 4096 May  9 20:32 tmp
drwx------ 2 root root 4096 May  9 19:49 trust
drwxrwxrwx 1 root root 4096 May  9 20:23 volumes

ls -n / var / lib / docker /

drwx------ 2 0 0 4096 May  9 19:49 builder
drwx--x--x 3 0 0 4096 May  9 19:49 containerd
drwx------ 2 0 0 4096 May  9 19:49 containers
drwx------ 3 0 0 4096 May  9 19:49 image
drwxr-x--- 3 0 0 4096 May  9 19:49 network
drwx------ 3 0 0 4096 May  9 20:24 overlay2
drwx------ 4 0 0 4096 May  9 19:49 plugins
drwx------ 2 0 0 4096 May  9 20:32 runtimes
drwx------ 2 0 0 4096 May  9 19:49 swarm
drwx------ 2 0 0 4096 May  9 20:32 tmp
drwx------ 2 0 0 4096 May  9 19:49 trust
drwxrwxrwx 1 0 0 4096 May  9 20:23 volumes

Como posso corrigir isso?

    
por BD Bear 09.05.2018 / 20:36

0 respostas