I trying to automate a docker server using docker-py. Need to check whether the host URL is pinging or not using python. Hence I need an equivalent command in python for docker port container
import docker
client = docker.from_env()
print(client.port('c03ebfb53a7d', 80))
Top comments (0)