カレントディレクトリに設定ファイルの tdiary.conf と変換スクリプトの squeeze.rb 、tDiaryのデータを data というディレクトリに置いて、dockerを実行すればhtmlディレクトリにhtmlファイルが出力されます。
$ wget https://raw.githubusercontent.com/tdiary/tdiary-contrib/master/plugin/squeeze.rb
$ docker pull tdiary/tdiary:latest
$ docker run --rm --user $(id -u):$(id -g) \
-v "$(pwd)/data/:/usr/src/app/data" -v "$(pwd)/tdiary.conf:/usr/src/app/tdiary.conf" \
-v "$(pwd)/squeeze.rb:/squeeze.rb" -v "$(pwd)/html:/html" \
tdiary/tdiary:latest \
/usr/local/bin/ruby /squeeze.rb -p /usr/src/app/lib/ -c /usr/src/app/ -s -x .html /html