4

When i run the below command

$ docker-compose exec web bash

This is the error which i faced :

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

Mostafa Ghadimi
  • 5,883
  • 8
  • 64
  • 102

3 Answers3

9

This happened to me too. But I accidentally stopped the container and after restarting the container, the problem was solved.

This way worked for all my containers.

enter image description here

amirhossein
  • 301
  • 1
  • 3
  • 12
1

this may happen on a selinux enabled kernel - caused by an upstream issue of the runc component.

a interim workaround may help until the issue is resolved.

jitter
  • 434
  • 8
  • 16
0

Is a problem with iptables. If you are using a firewall like shorewall or selinux and modify any rules or policies, this will happen. SOlution is to restart docker engine or restart the container itself so the rules can be generated again.