2

I have installed docker volume plugin and now need to start it.

https://github.com/projectatomic/docker-lvm-plugin

As per this document, you can start the plugin using the below command.

sudo systemctl start docker-lvm-plugin

I have Ubuntu 14.4 and does not have systemctl installed. So, how do I start it?

I see the this following folder.

pr@pr-ubuntu:~/ba/docker-lvm-plugin$ tree systemd/
systemd/
├── docker-lvm-plugin.service
└── docker-lvm-plugin.socket



pr@pr-ubuntu:~/ba/docker-lvm-plugin/systemd$ cat docker-lvm-plugin.service 
[Unit]
Description=Docker Volume Driver for lvm volumes
Documentation=man:docker-lvm-plugin(8)
Before=docker.service

[Service]
Type=simple
EnvironmentFile=-/etc/docker/docker-lvm-plugin
ExecStart=/usr/libexec/docker/docker-lvm-plugin

[Install]
WantedBy=multi-user.target

2 Answers2

2

Do sudo apt-get install systemd to get the "systemctl" command, then do sudo systemctl start docker Then do sudo systemctl start docker-lvm-plugin

Jose
  • 21
1

systemctl is part of the new SystemD init system present in Ubuntu 16.04 and newer.

Old versions of Ubuntu (so before 16.04) use upstart instead, which uses the service command.

In order to start the service, use this command instead:

sudo service docker-lvm-plugin start

Note that if the installer itself installed the service files in a systemd-only directory, it will not work with your system. You either need to get an older (or alternate) version of the package built for upstart-based systems or you need to update to 16.04 or newer.

Kaz Wolfe
  • 34,680