nsenter 错误:_nl_intern_locale_data:断言失败

Gur*_*ngh 4 docker dockerfile docker-compose docker-machine

我正在尝试在 docker 中使用nsenter,但从早上开始就出现上述错误。

我也升级了语言环境,但仍然收到我尝试执行的相同错误命令

sudo nsenter -m 29050 /bin/bash
Run Code Online (Sandbox Code Playgroud)

执行同一命令后出现的错误是

nsenter: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
    Aborted.
Run Code Online (Sandbox Code Playgroud)

请帮助我解决问题。

谢谢。

小智 5

设置 LC_ALL="C.UTF-8" 可能会解决您的问题。