To understand properly first, in docker one cannot pass easily arguments to an application (kamailio in this case)? Kamailio has many parameters, not only for memory, not sure it is the right approach to look for an environment variable for all of them.