def assert_container_is_active()

in composer_local_dev/environment.py [0:0]


    def assert_container_is_active(self, container_name):
        """
        Asserts docker container is in running or created state (is active).
        """
        status = self.get_container(container_name).status
        if status not in (
                constants.ContainerStatus.RUNNING,
                constants.ContainerStatus.CREATED,
        ):
            raise errors.EnvironmentStartError()