docker-volume-netshare icon indicating copy to clipboard operation
docker-volume-netshare copied to clipboard

Docker not seeing NFS plugin when netshare is started from systemctl or service command

Open nicovd737 opened this issue 3 years ago • 2 comments

Hi, Using netshare plugin for docker: Version: 0.36 - Built: 2019-02-24T22:50:38-06:00

Docker version: Client: Docker Engine - Community Version: 20.10.7 API version: 1.41 Go version: go1.13.15 Git commit: f0df350 Built: Wed Jun 2 11:56:38 2021 OS/Arch: linux/amd64 Context: default Experimental: true

Server: Docker Engine - Community Engine: Version: 20.10.7 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: b0f5bc3 Built: Wed Jun 2 11:54:50 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.6 GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d runc: Version: 1.0.0-rc95 GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7 docker-init: Version: 0.19.0 GitCommit: de40ad0

Issue:

  • When starting plugin from CLI with command: "/usr/bin/docker-volume-netshare nfs", then docker is seeing NFS plugin and all works as a charm.
  • When starting plugin from systemctl or service command (for automatic restart after reboot), daemon starts but docker do not see NFS plugin.

Did i miss something ?

Thanks for your appreciated help. Nico

nicovd737 avatar Jul 07 '21 15:07 nicovd737

I am having the same issue as well. Looks like docker starts before docker-volume-netshare does. Once I restart docker I can see it working again docker-volume-netshare.

I've tried adding docker-volume-netshare.service to wants and required in the docker.service file with no luck.

gravyflex avatar Oct 22 '21 02:10 gravyflex

I am also having this issue on a production server. @nicovd737 did you find a solution to prevent this error?

jorgecuevas92 avatar Nov 01 '21 17:11 jorgecuevas92