openmediavault-docker-gui Testing

  • I've put together a plugin for managing your Docker images/containers within OMV. I know there are already other plugins available for this purpose, but I wanted something which felt like OMV'ish look and feel. The plugin is available in the omvextras Docker Testing repo if you want to give it a try. My goal has been to make a plugin that helps me out with working with Docker on a daily basis, and I'm not a Docker guru so there are quite some "poweruser" stuff missing. However this is the current feature list:

    • Pull images
    • Search images on Docker Hub
    • List installed images
    • "Run" an image with a number of parameters (network settings, environment variables etc.)
    • Get detailed info on an image
    • Delete images
    • Start/Stop/Restart/Delete containers
    • "Copy" a container with it's settings into a new container
    • Get detailed info on a container
    • List installed containers
    • Relocate the Docker base path (defaults to /var/lib/docker) to a shared folder
    • Copy existing images/containers to the shared folder
    • Change network port that the Docker API listens on

    Changelog:


    Here are some screenshots to give you an idea what it looks like:





    Keep in mind that this is a TESTING release and thus only install this in a VM or other test environment!


    How to install:

    • Install omvextras plugin as described here: http://omv-extras.org/simple/i…install-omv-extras-plugin
    • Install backports kernel (there is a tab for this purpose in the omvextras plugin)
    • Reboot
    • Enable the Docker Testing repo in the omvextras plugin
    • Locate and install the openmediavault-docker-gui plugin in the plugins section of OMV (it's in the Virtualization section of plugins)
    • Done! The plugin is in the Services section of OMV


    Hope you will like it :-)

  • I have an idea for future development of the plugin. We could have a "repository" (a simple to parse text-file) on github (for example) where we in the OMV community could add (links to) docker images that we like and think could be useful for others. Then these could be presented in a new tab in the plugin to be easily pulled from there. What do you think? Should I make some kind of "proof of concept" regarding this kind of feature?


    EDIT: I'm thinking something like this:

    Code
    <image>
    <name>MyImage</name>
    <repo>user/reponame</repo>
    <desc>Description</desc>
    <imgurl>URL of image</imgurl>
    </image>
  • Awesome plugin! I have been using docker for a few months now and this is perfect for OMV...I have a few ideas for this plugin that could be good for it.


    Integrate a docker-compose tab for easily setting up containers and also a docker log tab for monitoring running containers.


    Docker-compose is awesome for linking multiple containers and would be a great way to share .yml files for plugins.


    One question about this plugin though... Where would I enter in the volumes_from command? Under environment variables? I use that for a data only container that all my plugins point to for easy sharing of mount points...


    Thanks for this...it will really help OMV development!

  • Glad you like the plugin!

    Integrate a docker-compose tab for easily setting up containers and also a docker log tab for monitoring running containers.


    Docker-compose is awesome for linking multiple containers and would be a great way to share .yml files for plugins.


    As I mentioned in my first post, I'm quite new to the world of Docker and have only used it to build an image for myself and then run the same image. Thus I've implemented the features that I've found could be of use while testing this out. Could you please expand on the docker-compose/yml/plugin theory? I've not worked with this at all...


    One question about this plugin though... Where would I enter in the volumes_from command? Under environment variables? I use that for a data only container that all my plugins point to for easy sharing of mount points...


    Same reasoning as above :-) Maybe I'm missing some field for the volumes_from parameter? Please let me know and I'll see how it could be added.

  • I've done some testing of the "Docker repo" idea and it looks like it could be implemented quite easily. However I think we should setup a new repo on github for the purpose of hosting the XML file in order to limit commits on the plugin repo. How about an openmediavault-dockerrepo repo?

  • Should that be on git? Or rather on a subpage on omv-extras.org?


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!


    I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.

  • I'm fine with it being on github. It would make it easier to access and have version control. Otherwise, we could keep it on github and I could setup a cron script to sync it to the server.

    omv 5.5.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Sure, whats the name supposed to be?


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!


    I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!