[debian-mysql] Bug#920643: mariadb-server-10.3: mariadb won't start when running inside an lxc container when running on debian testing

Faustin Lammler faustin at fala.red
Thu Feb 14 15:51:09 GMT 2019


Control: forwarded -1 https://github.com/lxc/lxc/pull/2758

Matthew,
I able to reproduce this and I have the exact same error (mariadb log +
apparmor on host).

Your workaround is working but it seems that removing only these 3 lines
is sufficient:
> ProtectSystem=full
> PrivateDevices=true
> ProtectHome=true

You can leave this one:
> ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld

Another workaround is to disable completely apparmor:
https://wiki.debian.org/AppArmor/HowToUse#Disable_AppArmor

I think we should wait until some progress comes from
https://github.com/lxc/lxc/pull/2758.

Faustin



More information about the pkg-mysql-maint mailing list