This example runs imapsync in a container.
See Docker installation: Docker
docker run --rm -it ubuntu:24.04 bash -lc "apt-get update && apt-get install -y imapsync && imapsync --version"