<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>watashi-kabu</author_name>
  <author_url>https://blog.hatena.ne.jp/watashi-kabu/</author_url>
  <blog_title>わたしとカブのスープ</blog_title>
  <blog_url>https://watashi-kabu.hatenablog.com/</blog_url>
  <categories>
    <anon>Docker</anon>
    <anon>Linux</anon>
  </categories>
  <description>Dockerコンテナ内でchattrコマンドが使えなかったので、使えるようにしました。 chattrコマンドはLinuxのCLIコマンドで、書き換え・削除ができないファイルを作るときなどに使います。 Dockerコンテナでchattrコマンドが使えない理由は、Dockerコンテナでは標準でLINUX_IMMUTABLE_CAPABILITYが無効化されているためです。（chattrコマンドはLINUX_IMMUTABLE_CAPABILITYを利用している） なので、compose.yamlなどに下記オプションを追記し、LINUX_IMMUTABLE_CAPABILITYをONにしてあげるとc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwatashi-kabu.hatenablog.com%2Fentry%2F2026%2F02%2F07%2F000144&quot; title=&quot;Dockerコンテナでchattrコマンドを使う - わたしとカブのスープ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-07 00:01:44</published>
  <title>Dockerコンテナでchattrコマンドを使う</title>
  <type>rich</type>
  <url>https://watashi-kabu.hatenablog.com/entry/2026/02/07/000144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
