When I build a docker image with command line:
docker build -t x .
I can see the process log in terminal.
But with the python API, it doesnt't show anything.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import docker
import os
route = os.path.dirname(os.path.abspath(__file__))
client = docker.from_env()
client.images.build(
path=route,
tag="al3x609/nvnc:latest",
rm=True
)
How can I see it in realtime?