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
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
3
Answers
this may happen on a
selinux
enabled kernel – caused by an upstream issue of therunc
component.a interim workaround may help until the issue is resolved.
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.
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.