Python exceptions in Docker logs marked as stream: stdout

前端 未结 3 1562
猫巷女王i
猫巷女王i 2021-01-26 18:17

I want parse and handle all errors from docker container, but python exceptions marked as stdout, when I expect stderr.

As example simple app.py

3条回答
  •  甜味超标
    2021-01-26 18:40

    Apart from the previous answer (and my comment), there is the attach of docker run from the doc http://docs.docker.com/reference/commandline/cli/#run -a, --attach=[] Attach to STDIN, STDOUT or STDERR

提交回复
热议问题