This is an automated email from the ASF dual-hosted git repository. qianzhang pushed a commit to branch 1.6.x in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 24283d32b36868a087df8b08e356d27bb05fc37c Author: Qian Zhang <zhq527...@gmail.com> AuthorDate: Wed Sep 26 08:32:51 2018 +0800 Specified `--type=container` for `docker inspect` command. Without `--type` option, `docker inspect` is generic and will match against any object types. However in our case, we only care about Docker container rather than any other object types, so we need to add `--type=container` so that `docker inspect` will only match Docker container. Review: https://reviews.apache.org/r/68872 --- src/docker/docker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docker/docker.cpp b/src/docker/docker.cpp index 47ddf04..d1b949f 100644 --- a/src/docker/docker.cpp +++ b/src/docker/docker.cpp @@ -1320,6 +1320,7 @@ Future<Docker::Container> Docker::inspect( argv.push_back("-H"); argv.push_back(socket); argv.push_back("inspect"); + argv.push_back("--type=container"); argv.push_back(containerName); _inspect(argv, promise, retryInterval, callback);