* トラブルシューティング

** [CODE[-x]] 等が正しい結果を返さない

[1] Q:
[CODE[-x]] がおかしいです。

[PRE(code)[
$ docker run -it debian:sid bash -c 'test -e /bin/bash && echo "e"; test -x /bin/bash && echo "x"'
e
x
]PRE]

これが期待される結果なのに、
[CODE[debian]],
[CODE[ubuntu:focal]]
などでは正常に動作し、
[CODE[debian:sid]],
[CODE[ubuntu:latest]],
[CODE[ubuntu:devel]]
などでは「e」しか出力されません。

A:
[CODE[libseccomp2]]
を更新しましょう.
[[container]]
側でなく
[[host]]
側で.

[REFS[
- [2] [CITE@en[Bug #1916485 “test -x fails inside shell scripts in containers” : Bugs : libseccomp package : [[Ubuntu]]]], [TIME[2022-06-23T05:37:16.000Z]] <https://bugs.launchpad.net/ubuntu/+source/libseccomp/+bug/1916485>
]REFS]


* メモ