openmediavault-docker-gui Testing

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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:
      Display Spoiler

      openmediavault-docker-gui (0.2.18) testing

      * Add support for host name to the run container dialog
      * Auto wrap description text on repo tab
      * Add filtering on repo/image names in grids
      * Add state column with filtering to container grid
      * Make it possible to commit a container
      * Add checkbox to allow container time synchronization with host
      * Add autocomplete to container-side bind mounts

      openmediavault-docker-gui (0.2.17) testing

      * Add tooltips to the Run Container dialogue

      openmediavault-docker-gui (0.2.16) testing

      * Add extra parameters field

      openmediavault-docker-gui (0.2.15)

      * Fix problem with base path relocation not surviving reboots

      openmediavault-docker-gui (0.2.14)

      * Fix missing requirements for Repo tab
      * Minor layout change on Repo tab

      openmediavault-docker-gui (0.2.13)

      * More error handling when it comes to base path relocation

      openmediavault-docker-gui (0.2.12)

      * Fix potential problem if base path is manually relocated
      * Simplify make process
      * Improved remove script
      * Make base path relocation survive reboots

      openmediavault-docker-gui (0.2.11)

      * Fix top bar buttons disable in grids on load

      openmediavault-docker-gui (0.2.10)

      * Create folder required for base path relocation

      openmediavault-docker-gui (0.2.9)

      * Use bind mounts to relocate base path

      openmediavault-docker-gui (0.2.8)

      * Remove noexec option from fstab when relocating base path

      openmediavault-docker-gui (0.2.7)

      * Even better images search

      openmediavault-docker-gui (0.2.6)

      * Fix Docker image search

      openmediavault-docker-gui (0.2.5)

      * Fix conflicting class names
      * Use RootFolderBrowser provided by omv-extras

      openmediavault-docker-gui (0.2.4)

      * Made it possible to create data containers
      * More PHP code fixes to follow coding standards
      * Made it possible to create a data volume
      * Made it possible to specify volumes-from in a container
      * Made it possible to copy data containers
      * Escape spaces from input forms
      * Improved error handling for the Docker repo grid

      openmediavault-docker-gui (0.2.3)

      * Fixed indentation
      * Removed closing php tags
      * Better compliance with PHP coding standards
      * Changed some license texts
      * Layout fix for RunContainer component

      openmediavault-docker-gui (0.2.2)

      * Made it possible to execute command inside container
      * Docker repo feature implemented

      openmediavault-docker-gui (0.2.1)

      * Added license information
      * Code refactoring
      * Prepare for translations

      openmediavault-docker-gui (0.2.0)

      * Beta release
      * Layout change to the RunContainer component

      openmediavault-docker-gui (0.1.0)

      * Initial release.


      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:
      1. Install omvextras plugin as described here: omv-extras.org/simple/index.ph…install-omv-extras-plugin
      2. Install backports kernel (there is a tab for this purpose in the omvextras plugin)
      3. Reboot
      4. Enable the Docker Testing repo in the omvextras plugin
      5. Locate and install the openmediavault-docker-gui plugin in the plugins section of OMV (it's in the Virtualization section of plugins)
      6. Done! The plugin is in the Services section of OMV

      Hope you will like it :)

      The post was edited 11 times, last by nicjo814 ().

    • 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:

      Source Code

      1. ​<image>
      2. <name>MyImage</name>
      3. <repo>user/reponame</repo>
      4. <desc>Description</desc>
      5. <imgurl>URL of image</imgurl>
      6. </image>

      The post was edited 1 time, last by nicjo814 ().

    • 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!

      airbillion wrote:

      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...

      airbillion wrote:

      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.
    • openmediavault-docker-gui Testing

      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 3.0.87 erasmus | 64 bit | 4.9 backport kernel | omvextrasorg 3.4.26
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      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.