Method: Docker::Resource::Container#show
- Defined in:
- lib/docker/resource/container.rb
#show(container_id) ⇒ Object
inspect is a Ruby internal method that should not be overwritten therefore we use show as it displays the container details
32 33 34 35 36 |
# File 'lib/docker/resource/container.rb', line 32 def show(container_id) response = @connection.get("/containers/#{container_id}/json") raise_if_container_not_found(response.status) response.body_as_json end |