Closed huitseeker closed 6 years ago
A solution is probably to move the initialization of builder
and runner
in containerize to lazy properties (since we don't know if we're gonna need them at initialization of the Containerize
class)
I'll try to repro this (or if you have a good handle on the issue, I'd love a PR)
THanks!
I created https://github.com/metaparticle-io/package/pull/119
Which should address this....
When rebuilding any images in the python/examples directory, the docker builder's initialization includes a call to
APIClient(version='auto')
, which crashes when run in docker (for lack of a/var/run/docker.sock
to find).This was probably introduced around https://github.com/metaparticle-io/package/commit/686bc97b31b60fa3afeae1bb73d2506e4c651650
The error message observed then is:
Steps to reproduce:
json.loads
to parse a file, docker_builder receives several lines in process_stream)cd python/examples/web && python web.py