decker exec -it 容器ID /bin/bash 报错
提示不支持lxc 驱动,求助[root@xiaoniu ~]# docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES5c16ef8bf156 ll
·
提示不支持lxc 驱动,求助
[root@xiaoniu ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5c16ef8bf156 llsshd:latest "/usr/sbin/sshd -D" 2 hours ago Up 3 seconds 0.0.0.0:49153->22/tcp evil_newton
[root@xiaoniu ~]# docker exec -it 5c16ef8bf156 /bin/bash
FATA[0000] Error response from daemon: Unsupported: Exec is not supported by the lxc driver
截图如下
重启docker在连接一次试试看
[root@xiaoniu ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5c16ef8bf156 llsshd:latest "/usr/sbin/sshd -D" 2 hours ago Up 3 seconds 0.0.0.0:49153->22/tcp evil_newton
[root@xiaoniu ~]# docker exec -it 5c16ef8bf156 /bin/bash
FATA[0000] Error response from daemon: Unsupported: Exec is not supported by the lxc driver
截图如下
解决:
其实官方已经早就不推荐使用lxc了,所以只要去掉启动参数设置的lxc选项即可
vim /etc/sysconfig/docker
------------
other_args="--graph=/docker --exec-driver=lxc --selinux-enabled"
# 删除--exec-driver=lxc即可,改为
other_args="--graph=/docker --selinux-enabled"
------------
重启docker在连接一次试试看
更多推荐
已为社区贡献5条内容
所有评论(0)