GithubHelp home page GithubHelp logo

bhanditz / ubiquity-docker-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm/ubiquity-docker-plugin

0.0 2.0 0.0 37.17 MB

Ubiquity Docker Plugin

License: Apache License 2.0

Go 81.39% Shell 18.61%

ubiquity-docker-plugin's Introduction

Ubiquity Docker Volume Plugin

The Ubiquity Docker volume plugin provides access to persistent storage for Docker containers. This plugin communicates with the Ubiquity service for the creation and management of volumes in storage system.

The code is provided as is, without warranty. Any issue will be handled on a best-effort basis.

Installing the Ubiquity Docker volume plugin

Install and configure the plugin on each node in the Docker Swarm cluster that requires access to Ubiquity volumes.

1. Prerequisites

  • Ubiquity Docker volume plugin is supported on the following operating systems:

    • RHEL 7+
    • SUSE 12+
  • Ubiquity Docker volume plugin requires Docker version 17+.

  • The following sudoers configuration /etc/sudoers is required to run the plugin as root user:

       Defaults !requiretty
    

    For non-root users, such as USER, configure the sudoers as follows:

        USER ALL= NOPASSWD: /usr/bin/, /bin/, /usr/sbin/ 
        Defaults:%USER !requiretty
        Defaults:%USER secure_path = /sbin:/bin:/usr/sbin:/usr/bin
    
  • The Docker node must have access to the storage backends. Follow the configuration procedures detailed in the Available Storage Systems section, according to your storage system type.

2. Downloading and installing the plugin

  • Download and unpack the application package.
mkdir -p /etc/ubiquity
cd /etc/ubiquity
curl -L https://github.com/IBM/ubiquity-docker-plugin/releases/download/v0.4.0/ubiquity-docker-plugin-0.4.0.tar.gz | tar xzf -
chmod u+x ubiquity-docker-plugin
cp ubiquity-docker-plugin /usr/bin 
#chown USER:GROUP /usr/bin/ubiquity-docker-plugin   ### Run this command only a non-root user.
cp ubiquity-docker-plugin.service /usr/lib/systemd/system/ 
  • To run the plugin as non-root user, add the User=USER line under the [Service] item in the /usr/lib/systemd/system/ubiquity-docker-plugin.service file.

  • Enable the plugin service.

systemctl enable ubiquity-docker-plugin.service      

3. Configuring the plugin

Before running the plugin service, you must create and configure the /etc/ubiquity/ubiquity-client.conf file, according to your storage system type. Follow the configuration procedures detailed in the Available Storage Systems section.

4. Running the plugin service

  • Run the service.
systemctl start ubiquity-docker-plugin    
  • Restart the Docker engine daemon on the host to let it discover the new plugin.
service docker restart

Plugin usage examples

For examples on how to create, remove, list Ubiquity Docker volumes, as well as start and stop stateful containers, refer to the Available Storage Systems section, according to your storage system type.

Troubleshooting

Communication failure

If the Error looking up volume plugin ubiquity: Plugin does not implement the requested driver error is displayed and the Error in activate remote call &url.Error message is stored in the ubiquity-docker-plugin.log file, verify comminication link between the plugin and Ubiqutiy server nodes. The loss of communication may occur if the relevant TCP ports are not open. The port numbers are detailed in the plugin and Ubiquity server configuration files.

Support

For any questions, suggestions, or issues, use github.

Licensing

Copyright 2016, 2017 IBM Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

ubiquity-docker-plugin's People

Contributors

shay-berman avatar midoblgsm avatar aswarke avatar engelrob avatar yadaven avatar skhotoveli avatar ranhrl avatar seattleplus avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.