Checks whether a docker container is running.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
is_cont_running = duthost.is_container_running({DOCKER_CONTAINER_NAME})
service
- Name of docker container- Required:
True
- Type:
String
- Required:
True
if container is running, False
otherwise