You are not logged in.

#1 2022-07-12 14:14:48

Beesh
Member
Registered: 2022-01-09
Posts: 37

fail to execute docker exec

lately, as I try to execute

docker exec -it <container> bash

it gives me this error

OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown

on every container I try that command on, what's happening? I'm on arch 5.18.10 with pacman -Syu executed today

Offline

#2 2022-07-12 14:50:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,230

Re: fail to execute docker exec

Any chance your kernel was updated today?  Did you reboot?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-07-13 10:53:48

Beesh
Member
Registered: 2022-01-09
Posts: 37

Re: fail to execute docker exec

yeah I rebooted indeed after the kernel update, as always. Can you replicate?

Offline

#4 2022-07-13 14:01:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,230

Re: fail to execute docker exec

Sorry, I would not know docker if it bit me on the arm.  Just looking for the low hanging fruit.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2022-07-13 14:18:13

seth
Member
Registered: 2012-09-03
Posts: 58,960

Re: fail to execute docker exec

id; stat /dev/pts/0

Edit: https://serverfault.com/questions/10488 … o-terminal
Likewise strace docker to see what and maybe why it wants to do w/ the pts

Last edited by seth (2022-07-13 14:19:46)

Offline

#6 2022-07-28 11:44:59

Beesh
Member
Registered: 2022-01-09
Posts: 37

Re: fail to execute docker exec

seth wrote:
id; stat /dev/pts/0

Edit: https://serverfault.com/questions/10488 … o-terminal
Likewise strace docker to see what and maybe why it wants to do w/ the pts

I executed

id; stat /dev/pts/0

and this is the output

uid=0(root) gid=0(root) groups=0(root)
  File: /dev/pts/0
  Size: 0               Blocks: 0          IO Block: 1024   character special file
Device: 0,28    Inode: 3           Links: 1     Device type: 136,0
Access: (0620/crw--w----)  Uid: (    0/    root)   Gid: (    5/     tty)
Access: 2022-07-28 13:39:52.471484683 +0200
Modify: 2022-07-28 13:39:52.471484683 +0200
Change: 2022-07-28 13:39:15.471484683 +0200
 Birth: -

to strace docker I need to do something like this?

strace docker exec -it <container_name> bash

edit: if I restart docker service the problem is no more, is like it pops up again after some time, need to pin it down better, I will keep you updated

Last edited by Beesh (2022-07-28 13:34:57)

Offline

#8 2022-07-29 11:52:00

Beesh
Member
Registered: 2022-01-09
Posts: 37

Re: fail to execute docker exec

I can successfully confirm that is

systemctl daemon-reload

command that cause the issue, thank you

Offline

Board footer

Powered by FluxBB