I followed this link and tried to use runc
to launch a busybox container. I wanted to load a shared library into the container process with the LD_PRELOAD
trick. I modified the args
in config.json
"args": [
"sh"
],
to
"args": [
"LD_PRELOAD=preload.so sh"
],
It does not work as I expected. Is there a way to load a shared library with runc?
Found a way to preload a shared library with
runc
: