centos7 docker start manticore, mysql command not connecting

I tried AlmaLinux8.1,this system succeeds, the result is as follows

[root@localhost /]# cat /etc/*release*
AlmaLinux release 8.10 (Cerulean Leopard)
Derived from Red Hat Enterprise Linux 8.10 (Source)
AlmaLinux release 8.10 (Cerulean Leopard)
NAME="AlmaLinux"
VERSION="8.10 (Cerulean Leopard)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.10 (Cerulean Leopard)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.10"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
SUPPORT_END=2029-06-01
AlmaLinux release 8.10 (Cerulean Leopard)
AlmaLinux release 8.10 (Cerulean Leopard)
cpe:/o:almalinux:almalinux:8::baseos
[root@localhost /]# docker run -d --name=manticore --rm manticoresearch/manticore:latest
c0fb10cbb9e00237b8adb7e5125675b12106b8d85b66b294ef1105df51261852
[root@localhost /]# docker exec -it manticore bash
root@c0fb10cbb9e0:/var/lib/manticore# mysql -P9306 -h0
mysql> 

Then it occurred to me could it be the docker version? My docker version in centos7 and 8 is 20.10.08 and in ubuntu and AlmaLinux is the latest version of docker.

I deleted docker in centos7 and downloaded the latest docker version and guess what?

[root@localhost ~]# docker -v
Docker version 26.1.4, build 5650f9b
[root@localhost ~]# docker run -d --name=manticore --rm manticoresearch/manticore:latest
6b7fbc8bca5d10fb662da9c7abdcb49e6abeff72d97ceb1a6c43c41189c21bf9
[root@localhost ~]# docker exec -it manticore bash
root@6b7fbc8bca5d:/var/lib/manticore# mysql -P9306 -h0
mysql> show tables;
mysql> exit

As you can see, he succeeded and finally found out why and it turned out to be the docker version!

Do you know what the manticore docker version can’t be lower than?

it turned out to be the docker version!

Nice catch!

Do you know what the manticore docker version can’t be lower than?

Let me experiment with older docker versions to find out more details about the issue.

Thank you for your patience! Much appreciated! :handshake:

I could reproduce the issue in an older docker version and could solve it by running Manticore container with --security-opt seccomp=unconfined

Perhaps this is why it works fine without it in newer versions - Engine v20.10 | Docker Docs

  • Add support for clone3 syscall in the default seccomp policy to support running containers based on recent versions of Fedora and Ubuntu. moby/moby/#42836.

but I didn’t dig that really deep.

Wow, I tried this solution and I can connect successfully, great! :+1:

I had absolutely no idea how to find the solution myself :smiling_face_with_tear:, how did you find this solution?

Thank you very much for your patience!

DeepSeek suggested this among other possible options.

Haha, well now AI is a great tool :grin: