Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 552 Bytes

is_container_running.md

File metadata and controls

25 lines (19 loc) · 552 Bytes

is_container_running

Overview

Checks whether a docker container is running.

Example

def test_fun(duthosts, rand_one_dut_hostname):
    duthost = duthosts[rand_one_dut_hostname]

    is_cont_running = duthost.is_container_running({DOCKER_CONTAINER_NAME})

Arguments

  • service - Name of docker container
    • Required: True
    • Type: String

Expected Output

True if container is running, False otherwise