Docker Advice

Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
tcconsulting
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jun 02, 2017 6:50 pm

Docker Advice

Post by tcconsulting » Fri Jun 02, 2017 7:07 pm

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!

jllort
Moderator
Moderator
Posts: 10314
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Docker Advice

Post by jllort » Sat Jun 03, 2017 4:01 pm

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/

tcconsulting
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jun 02, 2017 6:50 pm

Re: Docker Advice

Post by tcconsulting » Mon Jun 05, 2017 12:52 pm

Do you know when it will be available?

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

pavila
Moderator
Moderator
Posts: 3051
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Docker Advice

Post by pavila » Wed Jun 07, 2017 10:27 am

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.

tcconsulting
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jun 02, 2017 6:50 pm

Re: Docker Advice

Post by tcconsulting » Wed Jul 19, 2017 9:01 pm

I still get an error message when I try to pull it down:

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

pavila
Moderator
Moderator
Posts: 3051
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Docker Advice

Post by pavila » Thu Jul 20, 2017 7:02 am

Try with:

Code: Select all

$ docker pull openkm/openkm:6.3.3

tcconsulting
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jun 02, 2017 6:50 pm

Re: Docker Advice

Post by tcconsulting » Fri Jul 21, 2017 1:43 pm

Worked fine this morning with just "docker pull openkm/openkm".

Thanks! I'll be trying it out today.

tcconsulting
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jun 02, 2017 6:50 pm

Re: Docker Advice

Post by tcconsulting » Fri Jul 21, 2017 4:38 pm

Is there any chance of seeing the Dockerfile that builds it?

That would help if I extend it.

pavila
Moderator
Moderator
Posts: 3051
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Docker Advice

Post by pavila » Mon Jul 24, 2017 8:06 pm

Can't you simply extend this container? I'm not sure what do you want to do.

pschulz01
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Tue Nov 14, 2017 3:09 am

Re: Docker Advice

Post by pschulz01 » Tue Nov 14, 2017 3:32 am

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.

just_me
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed Jun 19, 2013 12:42 pm

Re: Docker Advice

Post by just_me » Sun Aug 05, 2018 2:35 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests