How To Install docker-novolume-plugin on CentOS 7
Introduction
In this tutorial we learn how to install docker-novolume-plugin
on CentOS 7.
What is docker-novolume-plugin
When a volume in provisioned via the
VOLUME
instruction in a Dockerfile or viadocker run -v volumename
, host’s storage space is used. This could lead to an unexpected out of space issue which could bring down everything. There are situations where this is not an accepted behavior. PAAS, for instance, can’t allow their users to run their own images without the risk of filling the entire storage space on a server. One solution to this is to deny users from running images with volumes. This way the only storage a user gets can be limited and PAAS can assign quota to it. This plugin solves this issue by disallowing starting a container with local volumes defined. In particular, the plugin will blockdocker run
with ---volumes-from
- images that haveVOLUME
(s) defined - volumes early provisioned withdocker volume
command The only thing allowed will be just bind mounts.
We can use yum
or dnf
to install docker-novolume-plugin
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install docker-novolume-plugin.
Install docker-novolume-plugin on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install docker-novolume-plugin
using yum
by running the following command:
Install docker-novolume-plugin on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install docker-novolume-plugin
using dnf
by running the following command:
How To Uninstall docker-novolume-plugin on CentOS 7
To uninstall only the docker-novolume-plugin
package we can use the following command:
References
Summary
In this tutorial we learn how to install docker-novolume-plugin
on CentOS 7 using yum
and dnf
.