As an alternative to native packages, Collabora Productivity provide scripts and Dockerfile’s to create a Collabora Online Docker image.
You either need native packages, or the Docker image, not both. Docker images can be created on demand from the latest version of Collabora Online and the underlying system components. Please find everything in Collabora Online source code repository on GitHub.
The provided Dockerfile is a working sample. Feel free to add more packages to it, for example more fonts, if you need them.
Pre-made Docker image
The CODE Docker image can be installed to any x86-64, ppc64le or arm64 host, and it is fully configurable. For more information about setup and configuration for deployment, please read the CODE Docker page. If you want to try it out quickly, you can set up CODE docker image with file sharing integration in less than 5 minutes in a very basic way, following these instructions: quick tryout with ownCloud or quick tryout with Nextcloud.
Build Docker image
Scripts available at https://github.com/CollaboraOnline/online/tree/master/docker
Docker image can be built from packages or from source code.
Build latest CODE based on Ubuntu 18.04 LTS
cd from-packages docker build --no-cache -t mydomain/code -f Ubuntu .
Build Collabora Online 22.05
cd from-packages docker build --no-cache --build-arg type=cool --build-arg secret_key=<....> -t mydomain/cool -f Ubuntu .
Build Collabora Online 21.11 based on RHEL8
cd from-packages # Get your secret URL key from https://support.collaboraoffice.com/ (Collabora Partners/Customers) docker build --no-cache --build-arg version=21.11 --build-arg type=cool --build-arg secret_key=<....> -t mydomain/cool -f RHEL8 .
Build Collabora Online 22.05 license key enabled version
cd from-packages docker build --no-cache --build-arg type=key -t mydomain/cool -f Ubuntu .
Build Collabora Online from master branch (from source code)
cd from-source ./build.sh
Check build.sh for more build options!
Create a container from the image and run it
You need to pass the domain name or IP address of your WOPI host in an environment variable. Interactive mode:
docker run -t -i -p 9980:9980 -e "domain=your\\.wopihost\\.com" collabora/online
It will log to console.
Note: for the faster jail creation via bind mount (with Collabora Online 6.4 and higher), you need to use
docker run command with the
docker run -t -d -p 9980:9980 -e "domain=your\\.wopihost\\.com" --restart always collabora/ online
You can follow logs with:
docker logs --follow <container name>
Read more about logging at https://docs.docker.com/engine/admin/logging/overview/ .
Other optional environment variables that you can pass to
collabora/online are the following:
User name for the Admin Console
Password for the Admin Console
When this environment variable is set (is not “”), then startup script will not generate a new SSL certificate signed by a dummy CA. It is useful, if you want to use your own SSL certificate for some reason.
When this environment variable is set (is not “”), then startup script will generate a new SSL certificate signed by a dummy CA for this domain, not for
When this environment variable is set (is not “”), then its value will be used as server name in
By default only limited set of spelling dictionaries and thesauri are configured for
Collabora Online, mainly for performance reasons.
The default set of languages is the following:
You can pass extra command line parameters to