コード例 #1
0
ファイル: peer_cli_impl.py プロジェクト: jeremyeder/fabric
def executeCommandInContainer(context, command, container):
    fullContainerName = fullNameFromContainerNamePart(
        container, context.compose_containers)
    command = "docker exec {} {}".format(fullContainerName, command)
    executeCommand(context, command)
コード例 #2
0
ファイル: peer_cli_impl.py プロジェクト: 0yukikaze0/fabric
def executeCommandInContainer(context, command, container):
    fullContainerName = fullNameFromContainerNamePart(container, context.compose_containers)
    command = "docker exec {} {}".format(fullContainerName, command)
    executeCommand(context, command)
コード例 #3
0
def getPeerLogs(context, peerName):
    fullContainerName = bdd_test_util.fullNameFromContainerNamePart(peerName, context.compose_containers)
    stdout, stderr, retcode = bdd_test_util.cli_call(["docker", "logs", fullContainerName], expect_success=True)

    return stdout, stderr