Open jokemanfire opened 4 months ago
I found another two problem, when use fifo directly.
This is a method to get this error. 1、Get a image Dockerfile like this:
FROM busybox:latest
COPY test.sh /
ENTRYPOINT ["sh","/test.sh"]
test.sh is blow this:
while true; do
sleep 3
echo "hello"
result=$?
if [ $result -ne 0 ]; then
date >> log.txt
echo "echo faile . Result : $result" >> /log.txt
fi
done
docker build get this image. use ctr import this image. 2、run a container then use rshim to run a container. 3、get this error stop containerd service . you can see the error message in this container. but go shim will not be influenced. So I think use a pipe in shim may be completely needed. This pr which I test can resolve this problem #278
friendly ping , @fuweid @mxpv @Burning1020 . Looking forward to your reply.
tokio 1.40 pipe can resolve pipe promblem perfect. friendly ping , @fuweid @mxpv @Burning1020
Hi @jokemanfire , would you please file pull request to fix this? thanks
@fuweid Please have a check #278
disscustion in containerd I have told this question to containerd . But looks like containerd will not change. So I will take a pr to change fifo to pipe. I have complete this code , after some ci test ,I will submit this pr.