Use container state for ping status if it doesn't expose ports

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>