lib/bolt/transport/docker/connection.rb
# Executes a Docker CLI command and parses the output in JSON format
#
# @param subcommand [String] The docker subcommand to run
#   e.g. 'inspect' for `docker inspect`
# @param arguments [Array] Arguments to pass to the docker command
#   e.g. 'src' and 'dest' for `docker cp <src> <dest>
# @return [Object] Ruby object representation of the JSON string
Executes a Docker CLI command and parses the output in JSON format
Executes a Docker CLI command and parses the output in JSON format
def execute_local_json_command(subcommand, arguments = [])
          cmd = [subcommand, '--format', '{{json .}}'].concat(arguments)
          out, _err, _stat = run_cmd(cmd, env_hash)
          extract_json(out)
        end
def execute_local_json_command ( subcommand , arguments = [ ] ) cmd = [ subcommand , '--format' , '{{json .}}' ] . concat ( arguments ) out , _err , _stat = run_cmd ( cmd , env_hash ) extract_json ( out ) end
Executes a Docker CLI command and parses the output in JSON format
Executes a Docker CLI command and parses the output in JSON format
Ruby object representation of the JSON string
Ruby object representation of the JSON string
Object
subcommand
The docker subcommand to run e.g. 'inspect' for `docker inspect`
The docker subcommand to run e . g . ' inspect ' for ` docker inspect `
arguments
Arguments to pass to the docker command e.g. 'src' and 'dest' for `docker cp  
Arguments to pass to the docker command e . g . ' src ' and ' dest ' for ` docker cp