如果 docker 主机是 debian10(buster),当 运行 旧的 debian 容器时出现分段错误
Segmentation fault when run old debian containers if docker host is debian10(buster)
当我 运行 old debian gnu/linux images (v6 "squeeze", v7 "wheezy") 在新系统上 ( v10 "buster"), 我得到一个错误 (f.e., with bash):
$ docker run --rm -ti debian:6 sh
# bash
Segmentation fault (core dumped)
# exit
$ docker run --rm -ti debian:7 sh
# bash
Segmentation fault (core dumped)
# exit
如何解决?
您可能想看看 this discussion & also this。
从上面的讨论我们可以看出这是由于 debian10 中的内核配置更改,在 /etc/default/grub
中指定下一个配置来修复它:
GRUB_CMDLINE_LINUX_DEFAULT="vsyscall=emulate"
当我 运行 old debian gnu/linux images (v6 "squeeze", v7 "wheezy") 在新系统上 ( v10 "buster"), 我得到一个错误 (f.e., with bash):
$ docker run --rm -ti debian:6 sh
# bash
Segmentation fault (core dumped)
# exit
$ docker run --rm -ti debian:7 sh
# bash
Segmentation fault (core dumped)
# exit
如何解决?
您可能想看看 this discussion & also this。
从上面的讨论我们可以看出这是由于 debian10 中的内核配置更改,在 /etc/default/grub
中指定下一个配置来修复它:
GRUB_CMDLINE_LINUX_DEFAULT="vsyscall=emulate"