OpenRC / Docker / docker-volume-netshare bin

1 post / 0 new
#1 Mon, 2017-08-28 10:47
11notes
  • 11notes's picture
  • Offline
  • Last seen: 7 months 3 days ago
  • Joined: 2017-08-28

Maybe someone can help me. I want to start docker-volume-netshare before docker on an alpine VM with OpenRC. I’ve added the following to /etc/init.d/docker-volume-netshare (chmod +x):

#!/sbin/openrc-run
name="docker-volume-netshare"
command="docker-volume-netshare nfs &"
 
depend() {
        need net
        need localmount
}

Added docker-volume-netshare to boot  rc-update add docker-volume-netshare boot and rebooted. The problem is, this will fail:

I’m not very familiar with OpenRC, but my guess is that the process doesn’t return the proper SIG value. Adding nohup doesn’t work either. Any suggestions how to start this during boot?

bin https://github.com/ContainX/docker-volume-netshare