提交 0b8eeda4 编写于 作者: L liufeng31 提交者: Liu Jiaming

jq cmmand insteaded by docker

上级 47f9a95d
......@@ -36,15 +36,7 @@ USE_CACHE=1
DRY_RUN_ONLY=0
function check_experimental_docker() {
local jq_cmd="$(command -v jq)"
if [ -z "${jq_cmd}" ]; then
echo "Oops, command 'jq' not found."
echo "For Ubuntu, you can install it via:"
echo " sudo apt-get -y update && sudo apt-get -y install jq"
exit 1
fi
local daemon_cfg="/etc/docker/daemon.json"
local enabled="$(jq '.experimental' ${daemon_cfg} )"
local enabled="$(docker version -f '{{.Server.Experimental}}')"
if [ "${enabled}" != "true" ]; then
echo "Experimental features should be enabled to run Apollo docker build."
echo "Please perform the following two steps to have it enabled:"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册