providers/docker: check proper state for docker-logs [GH-3990]