Fixed a bug in docker/docker.cpp that causes unresolved symbols on OSX.

Review: https://reviews.apache.org/r/24825