A common issue for people who warm up Docker images twice, once without their final server.json and once with it is that CommandBox creates two servers. One for each server name.
This can cause the "install" command's behavior of putting Lucee extensions into the deploy folder to fail due to not being able to find the server.
It can also cause settings like server profile to use the wrong server.
Add a new global config setting to put CommandBox in "single server mode". In this mode, it will only store the details for a single server and will re-use that server's settings regardless of what name, directory, or server.json file is used on subsequent starts.
Each of those commands will affect the same server regardless of the fact the commands used different names.