Openhab 3.2 on Docker: no monotonic clock was available

When I was updating my Openhab version to Openhab 3.2 on Docker I was getting the following error:

OpenJDK Client VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes

This lead to not being able to start Openhab 3.2 on Docker on a Raspberry Pi.

It looks like in a standard Java implementation does not support the monotonic clock and it has to be installed on the Docker host, not the Docker container.

You can do this as follows:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138

sudo echo 'deb http://httpredir.debian.org/debian buster-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/debian-backports.list

sudo apt update
sudo apt install libseccomp2 -t buster-backports

After this you can start Openhab 3.2 on Docker on a Raspberry Pi.

The solution is based on this post.