docker exec 报错 Unsupported: Exec is not supported by the lxc driver

[root@testserver4 ~]# docker exec -ti e38bc81e2a8b /bin/bash

Error response from daemon: Unsupported: Exec is not supported by the lxc driver


其实官方已经早就不推荐使用lxc了,所以只要去掉启动参数设置的lxc选项即可

vim  /etc/sysconfig/docker  
------------  
other_args="-exec-driver=lxc --selinux-enabled"  
# 删除--exec-driver=lxc即可,改为  
other_args="--selinux-enabled"  
------------  

重启service docker restart在连接一次就可以了

你可能感兴趣的:(系统运维,docker)