我有一个运行R scraper脚本的Docker容器,并且出现以下错误:
Process execution failed due to java.io.IOException: Stream closed: java.io.IOException: Stream closed
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.apache.nifi.processors.standard.ExecuteProcess$4.call(ExecuteProcess.java:367)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
这些是我的docker run
命令,起初我在使用-d
并抛出了错误,然后我将其切换到前台,但仍然存在相同的错误:
docker run -a stdin -i -t -p 8080:8080 container-name
docker run -p 8080:8080 -d container-name
为什么关闭流?我认为这就像正确编写docker run
一样简单。我在任何地方都找不到与docker
有关的此错误的其他示例。