module Docker::Porcelain::Container::ClassMethods

Class-level container porcelain methods

Public Instance Methods

[](id) click to toggle source

Get container specified by id or name @param id [String] identifier or name of the container to get @return [Docker::Container, nil] container or nil if not found

# File lib/docker/porcelain/container.rb, line 104
def [] id
  Docker::Container.get id
rescue Docker::Error::NotFoundError
  nil
end