pythondockerdockerpy

What is docker inspect -f '{{ .Mounts }}' e2c657561363 equivalent in docker-py?


What is docker inspect -f '{{ .Mounts }}' e2c657561363 equivalent in docker-py?


Solution

  • Look into python bindings for the docker api: https://docker-py.readthedocs.io/en/stable/containers.html#container-objects.

    See this too: How to check if a docker instance is running? (I would not recommend it since it's a lot lower-level than the above).