Docker does not provide the rootfs path through docker inspect or statefile and the path is dependent on the storage driver being used. Instead of enumerating the storage drivers, we pick a pid from the container and get the config from /proc/pid/root. Although a bit expensive, this method works for non-docker containers too. |
||
---|---|---|
.. | ||
docker | ||
libcontainer | ||
raw | ||
container.go | ||
factory_test.go | ||
factory.go | ||
mock.go |