首页 > 其他分享 >docker exec 报错 decoding init error from pipe caused \"read parent: connection reset by peer\&

docker exec 报错 decoding init error from pipe caused \"read parent: connection reset by peer\&

时间:2023-10-20 10:11:47浏览次数:44  
标签:reset parent caused 报错 0x00007f3204624c00 go 0xffffffffffffffff runtime docker

复现方法,限制容器内pid个数

  1. docker run --pids-limit=1000  -d centos sleep 100000

  2. docker exec -it id bash 

  3.执行  for i in  $(seq 1 2000); do (sleep 100&) ; done

[root@host-226 ~]# docker stats eaec

CONTAINER           CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS

eaec                0.00%               366.4 MiB / 8.4 GiB   4.26%               126 B / 0 B         17.7 MB / 0 B       1000

4. 

[root@host-226 ~]# docker exec eaec date
oci runtime error: exec failed: container_linux.go:307: starting container process caused "process_linux.go:112: decoding init error from pipe caused \"read parent: connection reset by peer\"

5.进一步报错 关键报错  dateruntime/cgo: pthread_create failed: Resource temporarily unavailable

[root@node-2:/usr/bin]$ docker-runc exec cb2dff3cec0fd52f69daa69795426c1512624ff67b25894fc915103262da006e dateruntime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abortPC=0x7f3203b0037f m=0 sigcode=18446744073709551610goroutine 0 [idle]:
runtime: g 0: unknown pc 0x7f3203b0037f
stack: frame={sp:0x7ffe7d00de80, fp:0x0} stack=[0x7ffe7c80f440,0x7ffe7d00e450)0x00007ffe7d00dd80:  0x0000000000407ff6 <runtime.mmap+0x0000000000000076>  0x00007ffe7d00ddc0
0x00007ffe7d00dd90:  0x00007ffe7d00dd98  0x0000000000114c10
0x00007ffe7d00dda0:  0x0000002200000003  0x00007ffe7d00dde8
0x00007ffe7d00ddb0:  0x00000000004080d1 <runtime.mmap.func1+0x0000000000000051>  0x00007f31deac9000
0x00007ffe7d00ddc0:  0x0000000000408080 <runtime.mmap.func1+0x0000000000000000>  0x00007ffe7d00ddb8
0x00007ffe7d00ddd0:  0x00007f31deac9000  0x0000000000407000 <runtime.f32hash+0x0000000000000080>0x00007ffe7d00dde0:  0x0000003200000003  0x00000000ffffffff
0x00007ffe7d00ddf0:  0x00007ffe7d00de38  0x000000000041c239 <runtime.sysMapOS+0x0000000000000039>0x00007ffe7d00de00:  0x00007f31dc9b4000  0x0000000000408080 <runtime.mmap.func1+0x0000000000000000>0x00007ffe7d00de10:  0x000000000041c1c5 <runtime.sysHugePageOS+0x0000000000000065>  0x00007ffe7d00de60
0x00007ffe7d00de20:  0x00007ffe7d00de70  0x0000000000400000
0x00007ffe7d00de30:  0x0000000000406001 <internal/bytealg.IndexRabinKarp+0x0000000000000181>  0x0000000000b26060
0x00007ffe7d00de40:  0x00007ffe7d00df20  0x00007ffe7d00de90
0x00007ffe7d00de50:  0x00007ffe7d00dea0  0x0000000000000001
0x00007ffe7d00de60:  0x0000000000000003  0x0000000000b26060
0x00007ffe7d00de70:  0x0000000000b0e0e0  0x000000000067a4fc
0x00007ffe7d00de80: <0x0000000000000000  0x000000000046ddfe <runtime.callCgoMmap+0x000000000000003e>0x00007ffe7d00de90:  0x00007ffe7d00de90  0x0000000000000007
0x00007ffe7d00dea0:  0x0000000000000007  0x00007ffe7d00df68
0x00007ffe7d00deb0:  0x000000000042e28d <runtime.(*pageAlloc).update+0x00000000000003ad>  0x00007f3204624c00
0x00007ffe7d00dec0:  0x0000000000000007  0x00007ffe7d00df88
0x00007ffe7d00ded0:  0x000000000042e28d <runtime.(*pageAlloc).update+0x00000000000003ad>  0x00007f3204624c00
0x00007ffe7d00dee0:  0x0007bc003de00000  0x00007f3204624c00
0x00007ffe7d00def0:  0x00007f3204624c00  0x0000000000000012
0x00007ffe7d00df00:  0xfffffffe7fffffff  0xffffffffffffffff
0x00007ffe7d00df10:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df20:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df30:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df40:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df50:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df60:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df70:  0xffffffffffffffff  0xffffffffffffffff
runtime: g 0: unknown pc 0x7f3203b0037f
stack: frame={sp:0x7ffe7d00de80, fp:0x0} stack=[0x7ffe7c80f440,0x7ffe7d00e450)0x00007ffe7d00dd80:  0x0000000000407ff6 <runtime.mmap+0x0000000000000076>  0x00007ffe7d00ddc0
0x00007ffe7d00dd90:  0x00007ffe7d00dd98  0x0000000000114c10
0x00007ffe7d00dda0:  0x0000002200000003  0x00007ffe7d00dde8
0x00007ffe7d00ddb0:  0x00000000004080d1 <runtime.mmap.func1+0x0000000000000051>  0x00007f31deac9000
0x00007ffe7d00ddc0:  0x0000000000408080 <runtime.mmap.func1+0x0000000000000000>  0x00007ffe7d00ddb8
0x00007ffe7d00ddd0:  0x00007f31deac9000  0x0000000000407000 <runtime.f32hash+0x0000000000000080>0x00007ffe7d00dde0:  0x0000003200000003  0x00000000ffffffff
0x00007ffe7d00ddf0:  0x00007ffe7d00de38  0x000000000041c239 <runtime.sysMapOS+0x0000000000000039>0x00007ffe7d00de00:  0x00007f31dc9b4000  0x0000000000408080 <runtime.mmap.func1+0x0000000000000000>0x00007ffe7d00de10:  0x000000000041c1c5 <runtime.sysHugePageOS+0x0000000000000065>  0x00007ffe7d00de60
0x00007ffe7d00de20:  0x00007ffe7d00de70  0x0000000000400000
0x00007ffe7d00de30:  0x0000000000406001 <internal/bytealg.IndexRabinKarp+0x0000000000000181>  0x0000000000b26060
0x00007ffe7d00de40:  0x00007ffe7d00df20  0x00007ffe7d00de90
0x00007ffe7d00de50:  0x00007ffe7d00dea0  0x0000000000000001
0x00007ffe7d00de60:  0x0000000000000003  0x0000000000b26060
0x00007ffe7d00de70:  0x0000000000b0e0e0  0x000000000067a4fc
0x00007ffe7d00de80: <0x0000000000000000  0x000000000046ddfe <runtime.callCgoMmap+0x000000000000003e>0x00007ffe7d00de90:  0x00007ffe7d00de90  0x0000000000000007
0x00007ffe7d00dea0:  0x0000000000000007  0x00007ffe7d00df68
0x00007ffe7d00deb0:  0x000000000042e28d <runtime.(*pageAlloc).update+0x00000000000003ad>  0x00007f3204624c00
0x00007ffe7d00dec0:  0x0000000000000007  0x00007ffe7d00df88
0x00007ffe7d00ded0:  0x000000000042e28d <runtime.(*pageAlloc).update+0x00000000000003ad>  0x00007f3204624c00
0x00007ffe7d00dee0:  0x0007bc003de00000  0x00007f3204624c00
0x00007ffe7d00def0:  0x00007f3204624c00  0x0000000000000012
0x00007ffe7d00df00:  0xfffffffe7fffffff  0xffffffffffffffff
0x00007ffe7d00df10:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df20:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df30:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df40:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df50:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df60:  0xffffffffffffffff  0xffffffffffffffff
0x00007ffe7d00df70:  0xffffffffffffffff  0xffffffffffffffff

goroutine 1 [running]:
runtime.systemstack_switch()
        /usr/local/go/src/runtime/asm_amd64.s:463 fp=0xc000052780 sp=0xc000052778 pc=0x469e00
runtime.main()
        /usr/local/go/src/runtime/proc.go:170 +0x6d fp=0xc0000527e0 sp=0xc000052780 pc=0x43bccd
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x46c021

rax    0x0
rbx    0x6
rcx    0x7f3203b0037f
rdx    0x0
rdi    0x2
rsi    0x7ffe7d00de80
rbp    0x777c86
rsp    0x7ffe7d00de80
r8     0x0
r9     0x7ffe7d00de80
r10    0x8
r11    0x246
r12    0x275f370
r13    0x2c
r14    0xb26060
r15    0x1
rip    0x7f3203b0037f
rflags 0x246
cs     0x33
fs     0x0
gs     0x0exec failed: container_linux.go:307: starting container process caused "process_linux.go:112: decoding init error from pipe caused \"read parent: connection reset by peer\""

标签:reset,parent,caused,报错,0x00007f3204624c00,go,0xffffffffffffffff,runtime,docker
From: https://www.cnblogs.com/rincloud/p/17776397.html

相关文章

  • 29、Flink SQL之DESCRIBE、EXPLAIN、USE、SHOW、LOAD、UNLOAD、SET、RESET、JAR、JOB
    文章目录Flink系列文章四、SHOW语句1、java示例2、FlinkSQLcli示例3、showtables1)、语法2)、示例4、SHOWCREATETABLE5、SHOWCOLUMNS1)、语法2)、示例6、SHOWJARS7、SHOWJOBS五、LOAD语句1、语法2、Java示例3、FlinkSQLCli示例六、UNLOAD语句1、语法2、java示例3、Flink......
  • 29、Flink SQL之DESCRIBE、EXPLAIN、USE、SHOW、LOAD、UNLOAD、SET、RESET、JAR、JOB
    Flink系列文章1、Flink部署、概念介绍、source、transformation、sink使用示例、四大基石介绍和示例等系列综合文章链接13、Flink的tableapi与sql的基本概念、通用api介绍及入门示例14、Flink的tableapi与sql之数据类型:内置数据类型以及它们的属性15、Flink的tableapi与s......
  • 查看显卡使用情况nvidia-smi报错:command not found
    辗转查看了很多教程,踩了好多坑,最后终于解决了,参考的相关博客会在后文做引用。我解决的办法:1、在root下重启机器,执行:reboot2、重启以后,执行:cd/usr/src/,然后ls,查看nvidia-xxx,xxx为支持的版本号;3、安装驱动,执行:sudoapt-getinstalldkmssudodkmsinstall-mnvidia-vxxx(xxx为......
  • git提交时遇到的一些报错或提示框问题
    一、执行gitcommit时,弹出提示关键字为pre-commit并终止提交,如何解决?1、打开.git文件夹--->hooks,删除其中的pre-commit文件即可(如果没有.git文件,尝试以下操作)2、通过命令忽略pre-commit文件:gitcommit--no-verify–m"备注" 原因:pre-commit 钩子惹的祸,在通过 gitcommi......
  • SVN一直报错Error running context: 由于目标计算机积极拒绝,无法连接。解决办法【杭州
    一、发现SVN一直报错Errorrunningcontext:由于目标计算机积极拒绝,无法连接。 二、没有启动 VisualSVN Server。cmd--> services.msc打开本地服务。查看VisualSVN的三个服务的启动类型,建议选择“手动”,不能选择“禁用”,选择“自动”开机启动耗内存,因为是Java写的插件,要启......
  • SSH服务常见问题及报错汇总
    SSH常见问题汇总目录ssh知识要点2什么是ssh服务3ssh的软件包3客户端软件包3服务端软件3SSH服务配置文件说明3ssh_config和sshd_config配置文件区别3服务端优化配置选项7ssh入侵案例说明8IP如何防止SSH登录入侵小结:8修改服务器默认监听端口报错8ssh登录失败,报错:Pseudo-t......
  • GraalVM进行spring boot的native编译报错 “returned non-zero result”解决方法
    使用GraalVM对springboot工程进行native编译:系统:CentosJDK:GraalVMJDK21报错:Ifyouareunabletoresolvethisproblem,pleasefileanissuewiththeerrorreportat:https://graalvm.org/support[INFO]---------------------------------------------------------......
  • TS 踩坑笔记: 箭头函数添加泛型报错(Error: JSX element ‘T’ has no corresponding
    前言今天给大家分享一个在React项目中使用TypeScript遇到的错误项目背景React+TS的项目配置,项目中关于React组件的使用.tsx后缀,其他单纯的文件使用.ts后缀问题描述在React组件附近定义泛型的箭头函数时产生TS报错警告,原本以为是语法写错了但是实际上在.t......
  • kubeadm init 报错ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables
    现象:[ERRORFileContent--proc-sys-net-bridge-bridge-nf-call-iptables]:/proc/sys/net/bridge/bridge-nf-call-iptablescontentsarenotsetto1原因:  /proc/sys/net/bridge/bridge-nf-call-iptables 文件的内容并没有设置为1解决方案echo"1">/proc/sys/net/br......
  • mysql 运行没错,在mybatis中报错 druid 报错 syntax error, expect RPAREN, actual
    您遇到的问题可能是由于Druid版本较旧导致的。在Druid 1.0.19中,对于某些语法结构的处理存在一些限制和问题。针对您的具体情况,可以尝试以下解决方案:1. 确保SQL语句的括号匹配正确。错误消息"expect RPAREN, actual IDENTIFIER DAY"表明Druid期望一个右括号(RPAREN),但实际上......