{"id":11905,"date":"2025-12-28T17:29:07","date_gmt":"2025-12-28T08:29:07","guid":{"rendered":"https:\/\/www.moonmile.net\/blog\/?p=11905"},"modified":"2025-12-30T15:29:19","modified_gmt":"2025-12-30T06:29:19","slug":"docker-%e3%81%a7-libreoffice-%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/11905","title":{"rendered":"Docker \u3067 LibreOffice \u3092\u52d5\u304b\u3059"},"content":{"rendered":"\n<p>LibreOffice\u3067HTML\u3092PDF\u306b\u5909\u63db\u3059\u308b #wkhtmltopdf &#8211; Qiita<br><a href=\"https:\/\/qiita.com\/sonota88\/items\/011394d89f370fb3aaac\">https:\/\/qiita.com\/sonota88\/items\/011394d89f370fb3aaac<\/a><\/p>\n\n\n\n<p>\u306a\u3068\u3053\u308d\u3067\u3001Docker \u3067 Linux \u7248\u306e LibreOffice \u304c\u52d5\u304f\u3053\u3068\u3092\u77e5\u308a\u307e\u3057\u305f\u3002\u3053\u30532\u9031\u9593\u307b\u3069\u3001Excel VBA \u304b\u3089\u96e2\u8131\u3057\u3066\u3001LibreOffice + Python \u3067\u4f55\u304b\u3067\u304d\u306a\u3044\u304b\u3068\u6a21\u7d22\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u3069\u3046\u3084\u3089 Linux \u7248\u306f <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napt-get install -y libreoffice python3-uno\n<\/pre><\/div>\n\n\n<p>\u3067\u3001LibreOffice \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001GUI \u90e8\u5206\u306f\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u304c\u3001WSL \u4e0a\u306b\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u306e\u3067\u3001Linux \u7248\u306e LibreOffice + uno api \u958b\u767a\u3092\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059&#8230;\u3068\u3044\u3046\u306e\u304c\u4f55\u51e6\u304b\u306b\u3042\u3063\u305f\u306e\u3067\u3001\u4eca\u5ea6\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3001Docker \u3067\u52d5\u304b\u3059\u5834\u5408\u306f <a href=\"https:\/\/hub.docker.com\/r\/linuxserver\/libreoffice\/\">https:\/\/hub.docker.com\/r\/linuxserver\/libreoffice\/<\/a> \u304c\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3072\u3068\u307e\u305a\u3001\u4ee5\u4e0b\u3067 Docker \u304c\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndocker run -d \\\n  --name=libreoffice \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Asia\/Tokyo \\\n  -p 3000:3000 \\\n  -p 3001:3001 \\\n  -v \/path\/to\/config:\/config \\\n  --shm-size=&quot;1gb&quot; \\\n  --restart unless-stopped \\\n  lscr.io\/linuxserver\/libreoffice:latest\n<\/pre><\/div>\n\n\n<p>3000 \u756a\u30dd\u30fc\u30c8\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u52d5\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67-1024x653.png\" alt=\"\" class=\"wp-image-11906\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67-1024x653.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67-300x191.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67-768x490.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-67.png 1525w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"801\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68-1024x801.png\" alt=\"\" class=\"wp-image-11907\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68-1024x801.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68-300x235.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68-768x601.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68-1536x1202.png 1536w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/12\/image-68.png 1748w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u554f\u984c\u304c\u3042\u3063\u3066\u3001Calc \u3060\u3051\u65e5\u672c\u8a9e\u5165\u529b\u304c\u5909\u306b\u306a\u308a\u307e\u3059\u3002\u79c1\u306e\u74b0\u5883\u3067\u306f\u6f22\u5b57\u5909\u63db\u72b6\u614b\u306e\u3068\u304d\u306b a \u30ad\u30fc\u3092\u6253\u3064\u3068\u30ea\u30bf\u30fc\u30f3\u30ad\u30fc\u3068\u540c\u3058\u72b6\u614b\u306b\u306a\u308b\u3089\u3057\u304f\u3001\u7a7a\u767d\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u306a\u3093\u304b\u3001\u4e8c\u6587\u5b57\u76ee\u304c\u5909\u306a\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001Writer \u3084 Impress \u3060\u3068\u6b63\u5e38\u306b\u6253\u3066\u308b\u306e\u3067\u3001Calc \u3060\u3051\u306e\u30d0\u30b0\u306e\u3088\u3046\u3067\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248\u3060\u3068\u554f\u984c\u306a\u304f\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u7248\u3060\u3051\u306e\u30d0\u30b0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u300c\u540d\u524d\u3092\u4ed8\u3051\u3066\u4fdd\u5b58\u300d\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u62e1\u5f35\u5b50\u3092\u9078\u629e\u3059\u308b\u3068\u304d\u306e\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9\u3082\u304a\u304b\u3057\u306a\u52d5\u304d\u3092\u3059\u308b\u306e\u3067\u3001\u306a\u306b\u304b\u74b0\u5883\u304c\u304a\u304b\u3057\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LibreOffice\u3067HTML\u3092PDF\u306b\u5909\u63db\u3059\u308b #wkhtmltopdf &#8211; Qiitahttps:\/\/qiita.com\/sonota88\/items\/011394d89f370fb3aaac \u306a\u3068\u3053\u308d &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/11905\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,109],"tags":[],"class_list":["post-11905","post","type-post","status-publish","format-standard","hentry","category-dev","category-libreoffice"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=11905"}],"version-history":[{"count":1,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11905\/revisions"}],"predecessor-version":[{"id":11908,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11905\/revisions\/11908"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=11905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=11905"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=11905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}