Container A stops running Container B

Hi Everybody,
I have created two containers(from 2 different images) with liferay instance on them, they are linked at the same postgres container but in a different DB.
The first container is published on port 8080 and the second on 8081.

Everything works fine except for one thing…if ContainerA is running and I start ContainerB, the ContainerA stops(and viceversa).

Searching on google I didn’t find nothing.
Someone has any idea? I am new about docker…port…etc.

[EDIT]It was a memory problem, increasing docker memory solved the problem