Actual behavior
Hi, when using docker build the below Dockerfile builds and installs mysql-server-8.0 correctly. When using Kaniko it hangs and eventually errors out when trying to establish if the mysqld process has exited during post installation configuration
FROM docker.io/library/ubuntu:24.04
RUN apt update -y \
&& DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y mysql-server-8.0
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 631
Error: Unable to shut down server with process id 631
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Looks like the postinst script starts and then kills the mysqld process, and needs to detect its absence before continuing:
Actual behavior Hi, when using
docker build
the below Dockerfile builds and installsmysql-server-8.0
correctly. When using Kaniko it hangs and eventually errors out when trying to establish if the mysqld process has exited during post installation configurationLooks like the postinst script starts and then kills the mysqld process, and needs to detect its absence before continuing:
https://git.launchpad.net/ubuntu/+source/mysql-8.0/tree/debian/mysql-server-8.0.postinst#n46
mysqld becomes a zombie rather than exiting fully so the script fails
ps
in the kaniko container before exit:ps
in the kaniko container after exit:ps
on the host after exit:Expected behavior The mysqld process to exit cleanly as it does in docker (and podman) build
To Reproduce Steps to reproduce the behavior:
Additional Information
/kaniko/executor --ignore-var-run=false --no-push
Kaniko Image (fully qualified with digest):
latest - sha256:c090be9d4042f64a1f44af5abfec6e778dc8f61bd301c54001485205fd1324e0
Triage Notes for the Maintainers
--cache
flag