OpenMediaVault-Plugin-Developers / openmediavault-docker-gui

Docker plugin for OpenMediaVault
32 stars 17 forks source link

Field "extra args" in "modify" dialog not working #36

Closed sehucke closed 6 years ago

sehucke commented 7 years ago

Problem:

Expected:

My system:

luxflow commented 7 years ago

it is only ui issue, extraargs works acually (check with --priviledged)

I'll be busy now so I cannot help you right now

subzero79 commented 7 years ago

For this to work every container fired in the ui would have to be registered in the omv backend. This is a big change.

sehucke commented 7 years ago

Thanks for the fast response!

You are right @luxflow . Just tested again. Maybe I mixed things up during testing. Sorry for that...

What do you mean @subzero79 with "every container fired in the ui would have to be registered in the omv backend"? Do you mean that you would have to store all input values in a separate database/file for each container? I guess you currently extract the settings of each container from the corresponding config.v2.json? In this case I see your point... definitely a big change.

Nevertheless: The docker-gui is able to list exposed ports, volumes etc. once the user has entered them. The user expects that it is doing the same for "extra args" as well. IMHO, it would be best to warn the user that this field is a one-timer.

Koxx3 commented 7 years ago

Hi, the problem is when you use "modify" from the GUI. The extra arguments are not restored ... if you save, they vanish and the container reset those settings :( I scratched my head a loooong time with this bug.

subzero79 commented 7 years ago

I am currently working on this. Analyzing the container metadata I found out a way to retrieve those extra options without having to register containers in Omv db backend. I'll keep updated, I reckon it will take me around two weeks. I've already added the full options for restart policy and basic macvlan support.

subzero79 commented 7 years ago

I posted a testing version in the forum. All the current running containers will not repopulate the extra arguments on modify or copy. Just after they are created with the testing version of the plugin

https://forum.openmediavault.org/index.php/Thread/11290-Docker-GUI-plugin-now-stable/?postID=146029#post146029

subzero79 commented 6 years ago

Closed with c0dd605686a0c10782187252b566255631a3a670