Centos 6 & modern docker

How to force your decomposed grand-grand dad to walk and to smile like he’s alive — some prosthetic and actuators needed.

George Shuklin
OpsOps
1 min readSep 6, 2019

--

My unlucky involvement with Docker had stumbled upon a new problem: Centos6 images no longer can build, and any attempt to run anything inside container ends with ‘exit code 136’.

With some struggles I found that I still can run dash instead of bash, and if I run bash inside centos, I got a ‘segmentation fault’. Further dmesg inspection shows:

I found that Centos 6 is dead, decomposed and abandoned. Unfortunately, I can’t skip it, as testinfra want to work on Centos6, so it have it in test suite.

The solution

My docker runs in VM. I found that adding vsyscall=emulate to the kernel command line (/etc/default/grub) fix this problem, and Centos6 smiles again, even if actuators make this smile a bit noisy.

I’ve updated my playbooks to reflect this.

--

--

George Shuklin
OpsOps

I work at Servers.com, most of my stories are about Ansible, Ceph, Python, Openstack and Linux. My hobby is Rust.