Extract function to check whether container is running
Add launch-dns command