Page 1 of 2

Docker Advice

PostPosted:Fri Jun 02, 2017 7:07 pm
by tcconsulting
I'm wanting to run OpenKM as a Docker container, but I'm not finding a lot of documentation. So I have a few questions I hope someone can help with:

1. I've tried to pull down what looks like the official image, openkm/openkm, from Docker Hub, but I get a "manifest for openkm/openkm:latest not found" error. The Docker Hub page says there have been 22 pulls, so I don't know if I'm just doing something wrong. I've pulled down tons of other images and this is the first time I've run across this message when pulling from Docker Hub.

2. There are several images for OpenKM on Docker Hub made by various folks. Does anyone have a recommendation for any particular one?

3. The images I've looked at tend to be for the Community Edition, which makes sense. But I want to use the Professional Edition. Anyone know of a pre-built image of the Professional Edition, or will I have to build my own?

Thanks for any help of advice!

Re: Docker Advice

PostPosted:Sat Jun 03, 2017 4:01 pm
by jllort
One of my colleagues have started working 2 months ago in a docker release, our official release will be here https://hub.docker.com/r/openkm/openkm/

Re: Docker Advice

PostPosted:Mon Jun 05, 2017 12:52 pm
by tcconsulting
Do you know when it will be available?

Also, will there be a professional version of it available?

Re: Docker Advice

PostPosted:Wed Jun 07, 2017 10:27 am
by pavila
Hello,

Feel free to use it. It should work. It's my first public Docker container, so if you find any problem report it and I will try to fix it.

In this moment there is no plan for a Professional based Docker container, but it may be possible. First of all I want to ensure the Community container works properly.

Regards.

Re: Docker Advice

PostPosted:Wed Jul 19, 2017 9:01 pm
by tcconsulting
I still get an error message when I try to pull it down:

Error response from daemon: manifest for openkm/openkm:latest not found

Re: Docker Advice

PostPosted:Thu Jul 20, 2017 7:02 am
by pavila
Try with:
Code: Select all
$ docker pull openkm/openkm:6.3.3

Re: Docker Advice

PostPosted:Fri Jul 21, 2017 1:43 pm
by tcconsulting
Worked fine this morning with just "docker pull openkm/openkm".

Thanks! I'll be trying it out today.

Re: Docker Advice

PostPosted:Fri Jul 21, 2017 4:38 pm
by tcconsulting
Is there any chance of seeing the Dockerfile that builds it?

That would help if I extend it.

Re: Docker Advice

PostPosted:Mon Jul 24, 2017 8:06 pm
by pavila
Can't you simply extend this container? I'm not sure what do you want to do.

Re: Docker Advice

PostPosted:Tue Nov 14, 2017 3:32 am
by pschulz01
Greetings,

I have been able to run the image, but have had some issues along the way.
More documentation on how to use the docker image (openkm/openkm:6.3.3) would be very useful.

1. The service needs to be accessed via 'IP Address'. eg. http://IPADDRESS:8080
If I try and use the hostname (eg. http://hostname:8080) I get the following error, and nothing is displayed:

Popup in browser:- Error getting translations: No row with the given identifier exists: [com.openkm.dao.bean.Language#en-US]

Question: How do I setup access vi a hostname? What needs to be done? (other than DNS A or CNAME records?)

2. In order to make the container data persistent, I have created a docker volume for /opt/openkm
Question: Is this sufficient? Is this too much? Is there anywhere else that needs to be preserved between container restarts.

In particular, I am interested in the following:
- backup and restore of data (which directories?)
- the upgrade process for openkm
- service migration to other hardware. (eg. stop container, copy volumes, start container on new hardware)

3. I have created a 'docker-compose.yml' file
Code: Select all
version: "3"

services:
  openkm:
    image: openkm/openkm:latest
    container_name: openkm
    volumes:
      - openkm-data:/opt/openkm
    ports:
      - 8080:8080
    restart: always

volumes:
  openkm-data:
Other Notes:
Other images and documentation
- obviouscap/openkm - https://github.com/obviouscap/openkm -version 6.3.2. Contains a Dockerfile which builds the openkm image.
- mcsaky/openkm - https://hub.docker.com/r/mcsaky/openkm/ - version 6.3.0, but suggests that http://yourserver.com:8080 can be used. Also contains a useful Dockerfile example.

Re: Docker Advice

PostPosted:Sun Aug 05, 2018 2:35 pm
by just_me
Cool enough,

thank you. This helped me out, the docker-compose.yml.

I wanted to use docker-compose, but as a noob to this things, it was very helpful

But what i am wondering about: How do i get SSL encryption via https:// Link on openKM running on Port 8080?

Any advice for that?

Thanks and best
j_m
PS: Hostsystem runs a cert via letsencrypt, if i could use this with openKM, this would be brilliant, because it will be renewed each month on its own ...

Re: Docker Advice

PostPosted:Thu Mar 14, 2019 4:27 pm
by styroteqe
Is the default okMadmin password for this container different from the one provided in the documentation?

Re: Docker Advice

PostPosted:Thu Mar 14, 2019 4:47 pm
by pavila
The default "okmAdmin" password is "admin". I've just added this info to the Docker Hub page.

Re: Docker Advice

PostPosted:Mon Mar 18, 2019 12:45 pm
by rbuick
I have run the docker image from https://hub.docker.com/r/openkm/openkm-ce/ (updated 13 days ago) on dockerhub, version 6.3.7 (build: 3fc09ed), which works fine on port 8080.
I would like to be able to run this on a secure port, but assigning an additional port 8443 doesn't display anything and comes back with 'connection timed out'.
Using the previous openkm/openkm docker image - no longer downloadable from - https://hub.docker.com/r/openkm/openkm/ - Version 6.3.6 (build: 87d181f) , worked fine on secure port 8443.
Any thoughts?
I wondered if the Dockerfile for this might be available?

Re: Docker Advice

PostPosted:Wed Mar 20, 2019 8:58 am
by pavila
OpenKM CE images are now located at https://hub.docker.com/r/openkm/openkm-ce

Regards.