<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>docker</anon>
  </categories>
  <description>Dockerで実行中のコンテナに入って調査するにはnsenterを使います。正確には、nsenterコマンドを使って、コンテナと同じ名前空間でプロセスを実行します。 nsenterコマンドにはコンテナのPIDや諸々の引数を渡す必要があるので、下記を .bashrc や .zshrc に書いておきます。 # Docker: enter into the container function docker-enter () { local container=&quot;$1&quot; if [ -z &quot;$container&quot; ]; then echo &quot;Usage: $0 CONTAINER [COMMAND A…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2014%2F08%2F31%2F155452&quot; title=&quot;実行中のコンテナと同じ名前空間でプロセスを実行する - GeekFactory&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>2014-08-31 15:54:52</published>
  <title>実行中のコンテナと同じ名前空間でプロセスを実行する</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2014/08/31/155452</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
