docker_utils.py:
def kill(container):
mounts = container.attrs['Mounts']
container.remove(
force=True,
v=True # Remove volumes associated with the container
)
for mount in mounts:
source = mount['Source']
target = source if os.path.isdir(
source) else os.path.dirname(source)
rmtree(
target,
ignore_errors=True
)
We shouldn't have local mounts any longer, so can I get of those parts of the code?
docker_utils.py:
We shouldn't have local mounts any longer, so can I get of those parts of the code?