Not compatible with Docker 1.12
Closed this issue · 1 comments
pkgw commented
When I try to build a test image on my machine running Docker 1.12, I get an error:
$ atomic-reactor build git --method hostdocker --build-image buildroot-fedora --image test-image --uri "https://github.com/TomasTomecek/docker-hello-world.git"
2016-12-14 17:23:59,226 - atomic_reactor.outer - INFO - building image 'test-image'
2016-12-14 17:23:59,227 - atomic_reactor.core - INFO - building image 'buildroot-fedora' in container using docker from host
2016-12-14 17:23:59,227 - atomic_reactor.core - INFO - checking whether image 'buildroot-fedora' exists
2016-12-14 17:23:59,230 - atomic_reactor.core - INFO - creating container from image 'buildroot-fedora' and running it
2016-12-14 17:23:59,646 - atomic_reactor - ERROR - exception caught: APIError(HTTPError('400 Client Error: Bad Request for url: http+docker://localunixsocket/v1.24/containers/ef5c8f24671ec5329024d7b75fafdb599898692278f0e87450171e86d3166f5b/start',),)
From the Docker server logs, it appears that a deprecated argument is being passed to the Docker API call that starts the container:
Dec 14 17:23:59 lambda.localdomain dockerd-current[1201]: time="2016-12-14T17:23:59.644762301-05:00" level=error msg="Handler for POST /v1.24/containers/ef5c8f24671ec5329024d7b75fafdb599898692278f0e87450171e86d3166f5b/start returned error: starting container with HostConfig was deprecated since v1.10 and removed in v1.12"
It's not exactly clear to me which parameter is the illegal one. I'm running atomic-reactor version 1.6.17.
twaugh commented
Seems related: docker/docker-py#1267