<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>トラブルシューティング</h1><section><h1><code>-x</code> 等が正しい結果を返さない</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> Q:
<code>-x</code> がおかしいです。</p><pre class="code">$ docker run -it debian:sid bash -c 'test -e /bin/bash &amp;&amp; echo &quot;e&quot;; test -x /bin/bash &amp;&amp; echo &quot;x&quot;'
e
x</pre><p>これが期待される結果なのに、
<code>debian</code>,
<code>ubuntu:focal</code>
などでは正常に動作し、
<code>debian:sid</code>,
<code>ubuntu:latest</code>,
<code>ubuntu:devel</code>
などでは「e」しか出力されません。</p><p>A:
<code>libseccomp2</code>
を更新しましょう.
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">container</anchor>
側でなく
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">host</anchor>
側で.</p><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">Bug #1916485 “test -x fails inside shell scripts in containers” : Bugs : libseccomp package : <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Ubuntu</anchor></cite>, <time>2022-06-23T05:37:16.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugs.launchpad.net/ubuntu/+source/libseccomp/+bug/1916485">https://bugs.launchpad.net/ubuntu/+source/libseccomp/+bug/1916485</anchor-external></li></ul></refs></section></section><section><h1>メモ</h1></section></body></html>