Best way to use Docker in OMV / Docker Errors

  • What is the best way to use, configure, maintain docker with OMV. The GUI is very nice and really helps make things easy, especially for newcomers, however it also seems to have the following issues / limitations:

    • If a container can't find / mount a configured disk path / reference it crashes and completely destroys that configuration.
    • No way to backup / save docker configurations.

    I read a little bit about potentially using Docker Compose to create and maintain everything. Can anyone provide guidance or references to potentially using Docker Compose with OMV. Would I be able to create and maintain things via Docker Compose and also still use the GUI for basic tasks? or would he GUI still be a separate thing?


    I have accidentally lost containers to many times running into errors with the GUI.
    Does anyone have recommendations?



    Below is an example of an error where a container can't start because it can't find referenced it.
    For example:


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; docker run -d --restart=unless-stopped -v /etc/localtime:/etc/localtime:ro --net=host -e PGID="100" -e PUID="1005" -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e HOME="/root" -e LANGUAGE="en_US.UTF-8" -e LANG="en_US.UTF-8" -e TERM="xterm" -e XDG_DATA_HOME="/config" -e XDG_CONFIG_HOME="/config" -v "/srv/dev-disk-by-label-Storage/AppData/Jackett":"/config":rw -v "/srv/dev-disk-by-label-Storage/Downloads":"/downloads":rw --volumes-from "Deluge" --volumes-from "Radarr" --volumes-from "Sonarr" --name="Jackett" "linuxserver/jackett:latest" 2>&1' with exit code '125': docker: Error response from daemon: No such container: Radarr. See 'docker run --help'.



    Then after error, if you try to do anything with the container, the following error occurs and the entire Container and configuration is destroyed.


    Error #0:
    OMVModuleDockerException: Error: "" - Code: 0 in /usr/share/omvdocker/Utils.php:74
    Stack trace:
    #0 /usr/share/omvdocker/Container.php(228): OMVModuleDockerUtil::doApiCall('http::/containe...')
    #1 /usr/share/omvdocker/Utils.php(393): OMVModuleDockerContainer->__construct(NULL, Array)
    #2 /usr/share/openmediavault/engined/rpc/docker.inc(991): OMVModuleDockerUtil::getContainer('6813082d217e')
    #3 [internal function]: OMVRpcServiceDocker->getContainerData(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #5 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getContainerDat...', Array, Array)
    #6 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'getContainerDat...', Array, Array, 1)
    #7 {main}

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!