lib/kontena/cli/services/containers_command.rb in kontena-cli-1.0.1.rc2 vs lib/kontena/cli/services/containers_command.rb in kontena-cli-1.0.1.rc3

- old
+ new

@@ -10,16 +10,16 @@ def execute require_api_url token = require_token - result = client(token).get("services/#{current_grid}/#{name}/containers") + result = client(token).get("services/#{parse_service_id(name)}/containers") result['containers'].each do |container| - puts "#{container['id']}:" + puts "#{container['name']}:" puts " rev: #{container['deploy_rev']}" puts " node: #{container['node']['name']}" - puts " dns: #{container['name']}.#{current_grid}.kontena.local" - puts " ip: #{container['overlay_cidr'].to_s.split('/')[0]}" + puts " dns: #{container['hostname']}.#{container['domainname']}" + puts " ip: #{container['ip_address']}" puts " public ip: #{container['node']['public_ip']}" if container['status'] == 'unknown' puts " status: #{container['status'].colorize(:yellow)}" else puts " status: #{container['status']}"