Problems getting my Rock-on started

Hey folks,

I have built a Docker container with debian and openfire 4.1.3. inside. The openfire service ist started with supervisor. I get my container running on a debian machine and by hand via comandline inside rockstor (3.9.0-1)

docker run -d --net=host peterpixel/docker-openfire 

But if I try to get it started with my build json I get this Log output:

[23/Mar/2017 10:22:22] DEBUG [storageadmin.views.rockon_helpers:62] Attempted to remove a container(openfire). out:[''] err: ['Error response from daemon: No such container: openfire', ''] rc: 1.
[23/Mar/2017 10:22:23] DEBUG [storageadmin.views.rockon:85] Rockon(openfire) is in pending state
[23/Mar/2017 10:22:23] DEBUG [storageadmin.views.rockon:85] Rockon(openfire) is in pending state
[23/Mar/2017 10:22:38] DEBUG [storageadmin.views.rockon:85] Rockon(openfire) is in pending state
[23/Mar/2017 10:22:53] DEBUG [storageadmin.views.rockon:85] Rockon(openfire) is in pending state

my json looks like:

  {
    "openfire": {
        "containers": {
            "openfire": {
                "image": "peterpixel/docker-openfire",
                "launch_order": "1",
                "opts": [
                    [
                        "--net=host",
                        ""
                    ]
                ],
                
                "ports": {
                    "5222": {
                        "description": "Jabber-Clients connect at this port. Suggested default: 5222",
                        "host_default": 5222,
                        "label": "Client Port",
                        "ui": false
                    },
                    "7777": {
                        "description": "Port for File Transfer Proxy. Suggested default: 7777",
                        "host_default": 7777,
                        "label": "Listening port",
                        "ui": false
                    },
                    "9090": {
                        "description": "Port for Web-Admin. Suggested default: 9090",
                        "host_default": 9090,
                        "label": "Web Front",
                        "ui": true
                    }
                },
                
               "volumes": {
                    "/usr/share/openfire": {
                        "description": "Main folder for openfire",
                        "label": "main folder"
                    } 
                }
              }
            
        },
        "description": "entertext",
    	  "more_info": "more info",
        "volume_add_support": true,
	      "website": "https://www.igniterealtime.org/projects/openfire/",
	      "version": "4.1.3"
    }
}

I have no clue what to do to get it running.

Thx for your help

cheers peterpixel

P.S.: Please feel free to test your own XMPP Chatserver with this Image. Inside the default Docker image there ist no Volume share definied. :slight_smile:

Ok, after a restart the container is created, but there is no connection via browser:

CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS               NAMES                           
0e537cd84cf0        peterpixel/docker-openfire   "/usr/bin/supervisord"   About an hour ago   Up 6 minutes                            openfire            

What am I doing wrong? thx

It´s getting warmer, the problem is the volume share. Maybe I must say that I was a total noob in Docker until this week :slight_smile:

If I add “volume_add_support”: true all works fine, but I want to use definied shares.

That´s how I build my image with docker (only the VOLUME):

VOLUME /etc/openfire /var/lib/openfire 

And this two I want to grab like that:

            "volumes": {
                "/etc/openfire": {
                    "description": "Choose a Share for openfire configuration. Eg: create a Share called openfire-config for this purpose alone.",
                    "label": "Config Storage"
                },
                "/var/lib/openfire": {
                    "description": "Choose a Share for openfire database and plugins. Eg: create a Share called openfire-db-plugin for this purpose alone.",
                    "label": "Database and Plugin location"
                }
            } 

And this produces my error… so I´m going on. Maybe someone can help me now :slight_smile:

cheers Peterpixel