OK. Can you share the snippet of your elastic agent configuration that specifies your host volume mount to show which folders you are mounting where in the container?
I am speaking in a generic way here since there isn't much detail shared about your use case, however generally host volumes can be problematic with such things if used for the writeable area (/godata), as each elastic agent really needs its own dedicated writeable space. If the second elastic agent isn't starting properly or isn't able to register with the server, you should be able to look at its container logs to see what the issue is.
I haven't tried it, but if you are bind mounting /godata to the same writeable host folder on each elastic agent, I suspect you will have problems - as each agent will have its own token issued by the server, which it needs to store locally, and might compete with each other to write to the space unless you only mount perhaps /godata/pipelines. If this is the issue the logs should indicate a server registration problem on one of the agents. if the 2nd container isn't starting at all, there should also be logs on the server side, or in the dedicated log for the elastic agent plugin in /godata/logs.
Can you share what you are trying to achieve with the host volume, i.e which data do you want to be persistent/shared between runs? Normally most elastic agent data is intended to be ephemeral and you want it to go away afterwards.
-Chad