LoginSignup
4
1

More than 5 years have passed since last update.

途切れたdocker execにもう一度つなぐ

Last updated at Posted at 2016-12-16

docker execで実行中のプロセスがあるときにネットワーク接続が切断された場合、プロセスは残っていますが出力を得ることができなくなります。

その場合、プロセスのPIDを調べて

reptyr -T $PID

すると、見失ってしまった出力に再び出会うことができます。

ubuntu trusty以降などの環境では、以下の設定が必要になるかもしれません。

echo 0 > /proc/sys/kernel/yama/ptrace_scope

参考)
https://github.com/nelhage/reptyr

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1