Inspect a container Run in API Explorer

GET /containers/{id}/json

Return low-level information about a container.

Path parameters

  • id string Required

    ID or name of the container

Query parameters

  • size boolean

    Return the size of container as fields SizeRw and SizeRootFs

    Default value is false.

Responses

  • 200 application/json

    no error

    Hide response attributes Show response attributes object
    • Id string

      The ID of the container

    • Created string

      The time the container was created

    • Path string

      The path to the command being run

    • Args array[string]

      The arguments to the command being run

    • State object

      ContainerState stores container's running state. It's part of ContainerJSONBase and will be returned by the "inspect" command.

      Hide State attributes Show State attributes object
      • Status string

        String representation of the container state. Can be one of "created", "running", "paused", "restarting", "removing", "exited", or "dead".

        Values are created, running, paused, restarting, removing, exited, or dead.

      • Running boolean

        Whether this container is running.

        Note that a running container can be paused. The Running and Paused booleans are not mutually exclusive:

        When pausing a container (on Linux), the freezer cgroup is used to suspend all processes in the container. Freezing the process requires the process to be running. As a result, paused containers are both Running and Paused.

        Use the Status field instead to determine if a container's state is "running".

      • Paused boolean

        Whether this container is paused.

      • Restarting boolean

        Whether this container is restarting.

      • OOMKilled boolean

        Whether a process within this container has been killed because it ran out of memory since the container was last started.

      • Dead boolean
      • Pid integer

        The process ID of this container

      • ExitCode integer

        The last exit code of this container

      • Error string
      • StartedAt string

        The time when this container was last started.

      • FinishedAt string

        The time when this container last exited.

      • Health object

        Health stores information about the container's healthcheck results.

        Hide Health attributes Show Health attributes object
        • Status string

          Status is one of none, starting, healthy or unhealthy

          • "none" Indicates there is no healthcheck
          • "starting" Starting indicates that the container is not yet ready
          • "healthy" Healthy indicates that the container is running correctly
          • "unhealthy" Unhealthy indicates that the container has a problem

          Values are none, starting, healthy, or unhealthy.

        • FailingStreak integer

          FailingStreak is the number of consecutive failures

        • Log array[object]

          Log contains the last few results (oldest first)

          HealthcheckResult stores information about a single run of a healthcheck probe

          Hide Log attributes Show Log attributes object
          • Start string(date-time)

            Date and time at which this check started in RFC 3339 format with nano-seconds.

          • End string(dateTime)

            Date and time at which this check ended in RFC 3339 format with nano-seconds.

          • ExitCode integer

            ExitCode meanings:

            • 0 healthy
            • 1 unhealthy
            • 2 reserved (considered unhealthy)
            • other values: error running probe
          • Output string

            Output from last check

    • Image string

      The container's image ID

    • ResolvConfPath string
    • HostnamePath string
    • HostsPath string
    • LogPath string
    • Name string
    • RestartCount integer
    • Driver string
    • Platform string
    • MountLabel string
    • ProcessLabel string
    • AppArmorProfile string
    • ExecIDs array[string]

      IDs of exec instances that are running in the container.

    • HostConfig object

      Container configuration that depends on the host we are running on

      Hide HostConfig attributes Show HostConfig attributes object
      • CpuShares integer

        An integer value representing this container's relative CPU weight versus other containers.

      • Memory integer(int64)

        Memory limit in bytes.

        Default value is 0.

      • CgroupParent string

        Path to cgroups under which the container's cgroup is created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups are created if they do not already exist.

      • BlkioWeight integer

        Block IO weight (relative weight).

        Minimum value is 0, maximum value is 1000.

      • BlkioWeightDevice array[object]

        Block IO weight (relative device weight) in the form:

        [{"Path": "device_path", "Weight": weight}]
        
        Hide BlkioWeightDevice attributes Show BlkioWeightDevice attributes object
        • Path string
        • Weight integer

          Minimum value is 0.

      • BlkioDeviceReadBps array[object]

        Limit read rate (bytes per second) from a device, in the form:

        [{"Path": "device_path", "Rate": rate}]
        
        Hide BlkioDeviceReadBps attributes Show BlkioDeviceReadBps attributes object
        • Path string

          Device path

        • Rate integer(int64)

          Rate

          Minimum value is 0.

      • BlkioDeviceWriteBps array[object]

        Limit write rate (bytes per second) to a device, in the form:

        [{"Path": "device_path", "Rate": rate}]
        
        Hide BlkioDeviceWriteBps attributes Show BlkioDeviceWriteBps attributes object
        • Path string

          Device path

        • Rate integer(int64)

          Rate

          Minimum value is 0.

      • BlkioDeviceReadIOps array[object]

        Limit read rate (IO per second) from a device, in the form:

        [{"Path": "device_path", "Rate": rate}]
        
        Hide BlkioDeviceReadIOps attributes Show BlkioDeviceReadIOps attributes object
        • Path string

          Device path

        • Rate integer(int64)

          Rate

          Minimum value is 0.

      • BlkioDeviceWriteIOps array[object]

        Limit write rate (IO per second) to a device, in the form:

        [{"Path": "device_path", "Rate": rate}]
        
        Hide BlkioDeviceWriteIOps attributes Show BlkioDeviceWriteIOps attributes object
        • Path string

          Device path

        • Rate integer(int64)

          Rate

          Minimum value is 0.

      • CpuPeriod integer(int64)

        The length of a CPU period in microseconds.

      • CpuQuota integer(int64)

        Microseconds of CPU time that the container can get in a CPU period.

      • CpuRealtimePeriod integer(int64)

        The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks.

      • CpuRealtimeRuntime integer(int64)

        The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks.

      • CpusetCpus string

        CPUs in which to allow execution (e.g., 0-3, 0,1).

      • CpusetMems string

        Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.

      • Devices array[object]

        A list of devices to add to the container.

        A device mapping between the host and container

        Hide Devices attributes Show Devices attributes object
        • PathOnHost string
        • PathInContainer string
        • CgroupPermissions string
      • DeviceCgroupRules array[string]

        a list of cgroup rules to apply to the container

      • DeviceRequests array[object]

        A list of requests for devices to be sent to device drivers.

        A request for devices to be sent to device drivers

        Hide DeviceRequests attributes Show DeviceRequests attributes object
        • Driver string
        • Count integer
        • DeviceIDs array[string]
        • Capabilities array[array]

          A list of capabilities; an OR list of AND lists of capabilities.

        • Options object

          Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver.

          Hide Options attribute Show Options attribute object
          • * string Additional properties
      • KernelMemoryTCP integer(int64)

        Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime.

        This field is omitted when empty.

      • MemoryReservation integer(int64)

        Memory soft limit in bytes.

      • MemorySwap integer(int64)

        Total memory limit (memory + swap). Set as -1 to enable unlimited swap.

      • MemorySwappiness integer(int64)

        Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100.

        Minimum value is 0, maximum value is 100.

      • NanoCpus integer(int64)

        CPU quota in units of 10-9 CPUs.

      • OomKillDisable boolean

        Disable OOM Killer for the container.

      • Init boolean

        Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used.

      • PidsLimit integer(int64)

        Tune a container's PIDs limit. Set 0 or -1 for unlimited, or null to not change.

      • Ulimits array[object]

        A list of resource limits to set in the container. For example:

        {"Name": "nofile", "Soft": 1024, "Hard": 2048}
        
        Hide Ulimits attributes Show Ulimits attributes object
        • Name string

          Name of ulimit

        • Soft integer

          Soft limit

        • Hard integer

          Hard limit

      • CpuCount integer(int64)

        The number of usable CPUs (Windows only).

        On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is CPUCount first, then CPUShares, and CPUPercent last.

      • CpuPercent integer(int64)

        The usable percentage of the available CPUs (Windows only).

        On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is CPUCount first, then CPUShares, and CPUPercent last.

      • IOMaximumIOps integer(int64)

        Maximum IOps for the container system drive (Windows only)

      • IOMaximumBandwidth integer(int64)

        Maximum IO in bytes per second for the container system drive (Windows only).

      • Binds array[string]

        A list of volume bindings for this container. Each volume binding is a string in one of these forms:

        • host-src:container-dest[:options] to bind-mount a host path into the container. Both host-src, and container-dest must be an absolute path.
        • volume-name:container-dest[:options] to bind-mount a volume managed by a volume driver into the container. container-dest must be an absolute path.

        options is an optional, comma-delimited list of:

        • nocopy disables automatic copying of data from the container path to the volume. The nocopy flag only applies to named volumes.
        • [ro|rw] mounts a volume read-only or read-write, respectively. If omitted or set to rw, volumes are mounted read-write.
        • [z|Z] applies SELinux labels to allow or deny multiple containers to read and write to the same volume.
          • z: a shared content label is applied to the content. This label indicates that multiple containers can share the volume content, for both reading and writing.
          • Z: a private unshared label is applied to the content. This label indicates that only the current container can use a private volume. Labeling systems such as SELinux require proper labels to be placed on volume content that is mounted into a container. Without a label, the security system can prevent a container's processes from using the content. By default, the labels set by the host operating system are not modified.
        • [[r]shared|[r]slave|[r]private] specifies mount propagation behavior. This only applies to bind-mounted volumes, not internal volumes or named volumes. Mount propagation requires the source mount point (the location where the source directory is mounted in the host operating system) to have the correct propagation properties. For shared volumes, the source mount point must be set to shared. For slave volumes, the mount must be set to either shared or slave.
      • ContainerIDFile string

        Path to a file where the container ID is written

      • LogConfig object

        The logging configuration for this container

        Hide LogConfig attributes Show LogConfig attributes object
        • Type string

          Values are json-file, syslog, journald, gelf, fluentd, awslogs, splunk, etwlogs, or none.

        • Config object
          Hide Config attribute Show Config attribute object
          • * string Additional properties
      • NetworkMode string

        Network mode to use for this container. Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is taken as a custom network's name to which this container should connect to.

      • PortBindings object

        PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format <port>/<protocol>, for example, 80/udp.

        If a container's port is mapped for multiple protocols, separate entries are added to the mapping table.

        Hide PortBindings attribute Show PortBindings attribute object
        • * array[object] Additional properties

          PortBinding represents a binding between a host IP address and a host port.

          Hide * attributes Show * attributes object
          • HostIp string

            Host IP address that the container's port is mapped to.

          • HostPort string

            Host port number that the container's port is mapped to.

      • RestartPolicy object

        The behavior to apply when the container exits. The default is not to restart.

        An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server.

        Hide RestartPolicy attributes Show RestartPolicy attributes object
        • Name string
          • Empty string means not to restart
          • no Do not automatically restart
          • always Always restart
          • unless-stopped Restart always except when the user has manually stopped the container
          • on-failure Restart only when the container exit code is non-zero

          Values are , no, always, unless-stopped, or on-failure.

        • MaximumRetryCount integer

          If on-failure is used, the number of times to retry before giving up.

      • AutoRemove boolean

        Automatically remove the container when the container's process exits. This has no effect if RestartPolicy is set.

      • VolumeDriver string

        Driver that this container uses to mount volumes.

      • VolumesFrom array[string]

        A list of volumes to inherit from another container, specified in the form <container name>[:<ro|rw>].

      • Mounts array[object]

        Specification for mounts to be added to the container.

        Hide Mounts attributes Show Mounts attributes object
        • Target string

          Container path.

        • Source string

          Mount source (e.g. a volume name, a host path).

        • Type string

          The mount type. Available types:

          • bind Mounts a file or directory from the host into the container. Must exist prior to creating the container.
          • volume Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are not removed when the container is removed.
          • tmpfs Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.
          • npipe Mounts a named pipe from the host into the container. Must exist prior to creating the container.
          • cluster a Swarm cluster volume

          Values are bind, volume, tmpfs, npipe, or cluster.

        • ReadOnly boolean

          Whether the mount should be read-only.

        • Consistency string

          The consistency requirement for the mount: default, consistent, cached, or delegated.

        • BindOptions object

          Optional configuration for the bind type.

          Hide BindOptions attributes Show BindOptions attributes object
          • Propagation string

            A propagation mode with the value [r]private, [r]shared, or [r]slave.

            Values are private, rprivate, shared, rshared, slave, or rslave.

          • NonRecursive boolean

            Disable recursive bind mount.

            Default value is false.

          • CreateMountpoint boolean

            Create mount point on host if missing

            Default value is false.

          • ReadOnlyNonRecursive boolean

            Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to true in conjunction).

            Default value is false.

          • ReadOnlyForceRecursive boolean

            Raise an error if the mount cannot be made recursively read-only.

            Default value is false.

        • VolumeOptions object

          Optional configuration for the volume type.

          Hide VolumeOptions attributes Show VolumeOptions attributes object
          • NoCopy boolean

            Populate volume with data from the target.

            Default value is false.

          • Labels object

            User-defined key/value metadata.

            Hide Labels attribute Show Labels attribute object
            • * string Additional properties
          • DriverConfig object

            Map of driver specific options

            Hide DriverConfig attributes Show DriverConfig attributes object
            • Name string

              Name of the driver to use to create the volume.

            • Options object

              key/value map of driver specific options.

              Hide Options attribute Show Options attribute object
              • * string Additional properties
        • TmpfsOptions object

          Optional configuration for the tmpfs type.

          Hide TmpfsOptions attributes Show TmpfsOptions attributes object
          • SizeBytes integer(int64)

            The size for the tmpfs mount in bytes.

          • Mode integer

            The permission mode for the tmpfs mount in an integer.

      • ConsoleSize array[integer]

        Initial console size, as an [height, width] array.

        At least 2 but not more than 2 elements. Minimum value of each is 0.

      • Annotations object

        Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started.

        Hide Annotations attribute Show Annotations attribute object
        • * string Additional properties
      • CapAdd array[string]

        A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'.

      • CapDrop array[string]

        A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'.

      • CgroupnsMode string

        cgroup namespace mode for the container. Possible values are:

        • "private": the container runs in its own private cgroup namespace
        • "host": use the host system's cgroup namespace

        If not specified, the daemon default is used, which can either be "private" or "host", depending on daemon version, kernel support and configuration.

        Values are private or host.

      • Dns array[string]

        A list of DNS servers for the container to use.

      • DnsOptions array[string]

        A list of DNS options.

      • DnsSearch array[string]

        A list of DNS search domains.

      • ExtraHosts array[string]

        A list of hostnames/IP mappings to add to the container's /etc/hosts file. Specified in the form ["hostname:IP"].

      • GroupAdd array[string]

        A list of additional groups that the container process will run as.

      • IpcMode string

        IPC sharing mode for the container. Possible values are:

        • "none": own private IPC namespace, with /dev/shm not mounted
        • "private": own private IPC namespace
        • "shareable": own private IPC namespace, with a possibility to share it with other containers
        • "container:<name|id>": join another (shareable) container's IPC namespace
        • "host": use the host system's IPC namespace

        If not specified, daemon default is used, which can either be "private" or "shareable", depending on daemon version and configuration.

      • Cgroup string

        Cgroup to use for the container.

      • OomScoreAdj integer

        An integer value containing the score given to the container in order to tune OOM killer preferences.

      • PidMode string

        Set the PID (Process) Namespace mode for the container. It can be either:

        • "container:<name|id>": joins another container's PID namespace
        • "host": use the host's PID namespace inside the container
      • Privileged boolean

        Gives the container full access to the host.

      • PublishAllPorts boolean

        Allocates an ephemeral host port for all of a container's exposed ports.

        Ports are de-allocated when the container stops and allocated when the container starts. The allocated port might be changed when restarting the container.

        The port is selected from the ephemeral port range that depends on the kernel. For example, on Linux the range is defined by /proc/sys/net/ipv4/ip_local_port_range.

      • ReadonlyRootfs boolean

        Mount the container's root filesystem as read only.

      • SecurityOpt array[string]

        A list of string values to customize labels for MLS systems, such as SELinux.

      • StorageOpt object

        Storage driver options for this container, in the form {"size": "120G"}.

        Hide StorageOpt attribute Show StorageOpt attribute object
        • * string Additional properties
      • Tmpfs object

        A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example:

        { "/run": "rw,noexec,nosuid,size=65536k" }
        
        Hide Tmpfs attribute Show Tmpfs attribute object
        • * string Additional properties
      • UTSMode string

        UTS namespace to use for the container.

      • UsernsMode string

        Sets the usernamespace mode for the container when usernamespace remapping option is enabled.

      • ShmSize integer(int64)

        Size of /dev/shm in bytes. If omitted, the system uses 64MB.

        Minimum value is 0.

      • Sysctls object

        A list of kernel parameters (sysctls) to set in the container. For example:

        {"net.ipv4.ip_forward": "1"}
        
        Hide Sysctls attribute Show Sysctls attribute object
        • * string Additional properties
      • Runtime string

        Runtime to use with this container.

      • Isolation string

        Isolation technology of the container. (Windows only)

        Values are default, process, or hyperv.

      • MaskedPaths array[string]

        The list of paths to be masked inside the container (this overrides the default set of paths).

      • ReadonlyPaths array[string]

        The list of paths to be set as read-only inside the container (this overrides the default set of paths).

    • GraphDriver object

      Information about the storage driver used to store the container's and image's filesystem.

      Hide GraphDriver attributes Show GraphDriver attributes object
      • Name string Required

        Name of the storage driver.

      • Data object Required

        Low-level storage metadata, provided as key/value pairs.

        This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only.

        Hide Data attribute Show Data attribute object
        • * string Additional properties
    • SizeRw integer(int64)

      The size of files that have been created or changed by this container.

    • SizeRootFs integer(int64)

      The total size of all the files in this container.

    • Mounts array[object]

      MountPoint represents a mount point configuration inside the container. This is used for reporting the mountpoints in use by a container.

      Hide Mounts attributes Show Mounts attributes object
      • Type string

        The mount type:

        • bind a mount of a file or directory from the host into the container.
        • volume a docker volume with the given Name.
        • tmpfs a tmpfs.
        • npipe a named pipe from the host into the container.
        • cluster a Swarm cluster volume

        Values are bind, volume, tmpfs, npipe, or cluster.

      • Name string

        Name is the name reference to the underlying data defined by Source e.g., the volume name.

      • Source string

        Source location of the mount.

        For volumes, this contains the storage location of the volume (within /var/lib/docker/volumes/). For bind-mounts, and npipe, this contains the source (host) part of the bind-mount. For tmpfs mount points, this field is empty.

      • Destination string

        Destination is the path relative to the container root (/) where the Source is mounted inside the container.

      • Driver string

        Driver is the volume driver used to create the volume (if it is a volume).

      • Mode string

        Mode is a comma separated list of options supplied by the user when creating the bind/volume mount.

        The default is platform-specific ("z" on Linux, empty on Windows).

      • RW boolean

        Whether the mount is mounted writable (read-write).

      • Propagation string

        Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the Linux kernel documentation for details. This field is not used on Windows.

    • Config object

      Deprecated: this field is kept for backward compatibility, but will be removed in API v1.45.

      Hide Config attributes Show Config attributes object
      • Hostname string

        The hostname to use for the container, as a valid RFC 1123 hostname.

      • Domainname string

        The domain name to use for the container.

      • User string

        The user that commands are run as inside the container.

      • AttachStdin boolean

        Whether to attach to stdin.

        Default value is false.

      • AttachStdout boolean

        Whether to attach to stdout.

        Default value is true.

      • AttachStderr boolean

        Whether to attach to stderr.

        Default value is true.

      • ExposedPorts object

        An object mapping ports to an empty object in the form:

        {"<port>/<tcp|udp|sctp>": {}}

        Hide ExposedPorts attribute Show ExposedPorts attribute object
        • * object Additional properties

          Default value is {} (empty).

      • Tty boolean

        Attach standard streams to a TTY, including stdin if it is not closed.

        Default value is false.

      • OpenStdin boolean

        Open stdin

        Default value is false.

      • StdinOnce boolean

        Close stdin after one attached client disconnects

        Default value is false.

      • Env array[string]

        A list of environment variables to set inside the container in the form ["VAR=value", ...]. A variable without = is removed from the environment, rather than to have an empty value.

      • Cmd array[string]

        Command to run specified as a string or an array of strings.

      • Healthcheck object

        A test to perform to check that the container is healthy.

        Hide Healthcheck attributes Show Healthcheck attributes object
        • Test array[string]

          The test to perform. Possible values are:

          • [] inherit healthcheck from image or parent image
          • ["NONE"] disable healthcheck
          • ["CMD", args...] exec arguments directly
          • ["CMD-SHELL", command] run command with system's default shell
        • Interval integer(int64)

          The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

        • Timeout integer(int64)

          The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

        • Retries integer

          The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit.

        • StartPeriod integer(int64)

          Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

        • StartInterval integer(int64)

          The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

      • ArgsEscaped boolean

        Command is already escaped (Windows only)

        Default value is false.

      • Image string

        The name (or reference) of the image to use when creating the container, or which was used when the container was created.

      • Volumes object

        An object mapping mount point paths inside the container to empty objects.

        Hide Volumes attribute Show Volumes attribute object
        • * object Additional properties

          Default value is {} (empty).

      • WorkingDir string

        The working directory for commands to run in.

      • Entrypoint array[string]

        The entry point for the container as a string or an array of strings.

        If the array consists of exactly one empty string ([""]) then the entry point is reset to system default (i.e., the entry point used by docker when there is no ENTRYPOINT instruction in the Dockerfile).

      • NetworkDisabled boolean

        Disable networking for the container.

      • MacAddress string

        MAC address of the container.

        Deprecated: this field is deprecated in API v1.44 and up. Use EndpointSettings.MacAddress instead.

      • OnBuild array[string]

        ONBUILD metadata that were defined in the image's Dockerfile.

      • Labels object

        User-defined key/value metadata.

        Hide Labels attribute Show Labels attribute object
        • * string Additional properties
      • StopSignal string

        Signal to stop a container as a string or unsigned integer.

      • StopTimeout integer

        Timeout to stop a container in seconds.

        Default value is 10.

      • Shell array[string]

        Shell for when RUN, CMD, and ENTRYPOINT uses a shell.

    • NetworkSettings object

      NetworkSettings exposes the network settings in the API

      Hide NetworkSettings attributes Show NetworkSettings attributes object
      • Bridge string

        Name of the default bridge interface when dockerd's --bridge flag is set.

      • SandboxID string

        SandboxID uniquely represents a container's network stack.

      • HairpinMode boolean

        Indicates if hairpin NAT should be enabled on the virtual interface.

        Deprecated: This field is never set and will be removed in a future release.

      • LinkLocalIPv6Address string

        IPv6 unicast address using the link-local prefix.

        Deprecated: This field is never set and will be removed in a future release.

      • LinkLocalIPv6PrefixLen integer

        Prefix length of the IPv6 unicast address.

        Deprecated: This field is never set and will be removed in a future release.

      • Ports object

        PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format <port>/<protocol>, for example, 80/udp.

        If a container's port is mapped for multiple protocols, separate entries are added to the mapping table.

        Hide Ports attribute Show Ports attribute object
        • * array[object] Additional properties

          PortBinding represents a binding between a host IP address and a host port.

          Hide * attributes Show * attributes object
          • HostIp string

            Host IP address that the container's port is mapped to.

          • HostPort string

            Host port number that the container's port is mapped to.

      • SandboxKey string

        SandboxKey is the full path of the netns handle

      • SecondaryIPAddresses array[object]

        Deprecated: This field is never set and will be removed in a future release.

        Address represents an IPv4 or IPv6 IP address.

        Hide SecondaryIPAddresses attributes Show SecondaryIPAddresses attributes object
        • Addr string

          IP address.

        • PrefixLen integer

          Mask length of the IP address.

      • SecondaryIPv6Addresses array[object]

        Deprecated: This field is never set and will be removed in a future release.

        Address represents an IPv4 or IPv6 IP address.

        Hide SecondaryIPv6Addresses attributes Show SecondaryIPv6Addresses attributes object
        • Addr string

          IP address.

        • PrefixLen integer

          Mask length of the IP address.

      • EndpointID string

        EndpointID uniquely represents a service endpoint in a Sandbox.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • Gateway string

        Gateway address for the default "bridge" network.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • GlobalIPv6Address string

        Global IPv6 address for the default "bridge" network.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • GlobalIPv6PrefixLen integer

        Mask length of the global IPv6 address.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • IPAddress string

        IPv4 address for the default "bridge" network.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • IPPrefixLen integer

        Mask length of the IPv4 address.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • IPv6Gateway string

        IPv6 gateway address for this network.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • MacAddress string

        MAC address for the container on the default "bridge" network.


        Deprecated: This field is only propagated when attached to the default "bridge" network. Use the information from the "bridge" network inside the Networks map instead, which contains the same information. This field was deprecated in Docker 1.9 and is scheduled to be removed in Docker 17.12.0

      • Networks object

        Information about all networks that the container is connected to.

        Hide Networks attribute Show Networks attribute object
        • * object Additional properties

          Configuration for a network endpoint.

          Hide * attributes Show * attributes object
          • IPAMConfig object

            EndpointIPAMConfig represents an endpoint's IPAM configuration.

            Hide IPAMConfig attributes Show IPAMConfig attributes object
            • IPv4Address string
            • IPv6Address string
            • LinkLocalIPs array[string]
          • MacAddress string

            MAC address for the endpoint on this network. The network driver might ignore this parameter.

          • Aliases array[string]
          • NetworkID string

            Unique ID of the network.

          • EndpointID string

            Unique ID for the service endpoint in a Sandbox.

          • Gateway string

            Gateway address for this network.

          • IPAddress string

            IPv4 address.

          • IPPrefixLen integer

            Mask length of the IPv4 address.

          • IPv6Gateway string

            IPv6 gateway address.

          • GlobalIPv6Address string

            Global IPv6 address.

          • GlobalIPv6PrefixLen integer(int64)

            Mask length of the global IPv6 address.

          • DriverOpts object

            DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific.

            Hide DriverOpts attribute Show DriverOpts attribute object
            • * string Additional properties
          • DNSNames array[string]

            List of all DNS names an endpoint has on a specific network. This list is based on the container name, network aliases, container short ID, and hostname.

            These DNS names are non-fully qualified but can contain several dots. You can get fully qualified DNS names by appending .<network-name>. For instance, if container name is my.ctr and the network is named testnet, DNSNames will contain my.ctr and the FQDN will be my.ctr.testnet.

  • 404 application/json

    no such container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /containers/{id}/json
curl \
 --request GET 'http://api.example.com/v1.44/containers/{id}/json'
Response examples (200)
{
  "Id": "ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39",
  "Args": [
    "-c",
    "exit 9"
  ],
  "Name": "/boring_euclid",
  "Path": "/bin/sh",
  "Image": "04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2",
  "State": {
    "Pid": 0,
    "Dead": false,
    "Error": "",
    "Health": {
      "Log": [
        {
          "End": "2019-12-22T10:59:05.8078452Z",
          "Start": "2019-12-22T10:59:05.6385933Z",
          "Output": "",
          "ExitCode": 0
        }
      ],
      "Status": "healthy",
      "FailingStreak": 0
    },
    "Paused": false,
    "Status": "running",
    "Running": true,
    "ExitCode": 9,
    "OOMKilled": false,
    "StartedAt": "2015-01-06T15:47:32.072697474Z",
    "FinishedAt": "2015-01-06T15:47:32.080254511Z",
    "Restarting": false
  },
  "Config": {
    "Cmd": [
      "/bin/sh",
      "-c",
      "exit 9"
    ],
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    ],
    "Tty": false,
    "User": "",
    "Image": "ubuntu",
    "Labels": {
      "com.example.vendor": "Acme",
      "com.example.license": "GPL",
      "com.example.version": "1.0"
    },
    "Volumes": {
      "/volumes/data": {}
    },
    "Hostname": "ba033ac44011",
    "OpenStdin": false,
    "StdinOnce": false,
    "Domainname": "",
    "MacAddress": "",
    "StopSignal": "SIGTERM",
    "WorkingDir": "",
    "AttachStdin": false,
    "Healthcheck": {
      "Test": [
        "CMD-SHELL",
        "exit 0"
      ]
    },
    "StopTimeout": 10,
    "AttachStderr": true,
    "AttachStdout": true,
    "NetworkDisabled": false
  },
  "Driver": "overlay2",
  "Mounts": [
    {
      "RW": false,
      "Mode": "ro,Z",
      "Name": "fac362...80535",
      "Driver": "local",
      "Source": "/data",
      "Destination": "/data",
      "Propagation": ""
    }
  ],
  "Created": "2015-01-06T15:47:31.485331387Z",
  "ExecIDs": [
    "b35395de42bc8abd327f9dd65d913b9ba28c74d2f0734eeeae84fa1c616a0fca",
    "3fc1232e5cd20c8de182ed81178503dc6437f4e7ef12b52cc5e8de020652f1c4"
  ],
  "LogPath": "/var/lib/docker/containers/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b-json.log",
  "HostsPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts",
  "HostConfig": {
    "Memory": 0,
    "Devices": [],
    "IpcMode": "",
    "PidMode": "",
    "ShmSize": 67108864,
    "Sysctls": {
      "net.ipv4.ip_forward": "1"
    },
    "Ulimits": [
      {}
    ],
    "CpuPeriod": 100000,
    "CpuShares": 0,
    "LogConfig": {
      "Type": "json-file"
    },
    "CpuPercent": 80,
    "CpusetCpus": "",
    "CpusetMems": "",
    "MemorySwap": 0,
    "Privileged": false,
    "BlkioWeight": 0,
    "MaximumIOps": 0,
    "NetworkMode": "bridge",
    "OomScoreAdj": 500,
    "MaximumIOBps": 0,
    "PortBindings": {},
    "VolumeDriver": "",
    "RestartPolicy": {
      "Name": "on-failure",
      "MaximumRetryCount": 2
    },
    "DeviceRequests": [
      {
        "Count": -1,
        "Driver": "nvidia",
        "Options": {
          "property1": "string",
          "property2": "string"
        },
        "DeviceIDs\"": [
          "0",
          "1",
          "GPU-fef8089b-4820-abfc-e83e-94318197576e"
        ],
        "Capabilities": [
          [
            "gpu",
            "nvidia",
            "compute"
          ]
        ]
      }
    ],
    "OomKillDisable": false,
    "ReadonlyRootfs": false,
    "ContainerIDFile": "",
    "PublishAllPorts": false,
    "BlkioWeightDevice": [
      {}
    ],
    "CpuRealtimePeriod": 1000000,
    "MemoryReservation": 0,
    "BlkioDeviceReadBps": [
      {}
    ],
    "CpuRealtimeRuntime": 10000,
    "BlkioDeviceReadIOps": [
      {}
    ],
    "BlkioDeviceWriteBps": [
      {}
    ],
    "BlkioDeviceWriteIOps": [
      {}
    ]
  },
  "MountLabel": "",
  "HostnamePath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname",
  "ProcessLabel": "",
  "RestartCount": 1,
  "ResolvConfPath": "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf",
  "AppArmorProfile": "",
  "NetworkSettings": {
    "Bridge": "",
    "Gateway": "",
    "Networks": {
      "bridge": {
        "Gateway": "172.17.0.1",
        "IPAddress": "172.17.0.2",
        "NetworkID": "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812",
        "EndpointID": "7587b82f0dada3656fda26588aee72630c6fab1536d36e394b2bfbcf898c971d",
        "MacAddress": "02:42:ac:12:00:02",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0
      }
    },
    "IPAddress": "",
    "SandboxID": "",
    "EndpointID": "",
    "MacAddress": "",
    "SandboxKey": "",
    "HairpinMode": false,
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "LinkLocalIPv6Address": "",
    "LinkLocalIPv6PrefixLen": 0
  }
}
Response examples (200)
{
  "Id": "string",
  "Created": "string",
  "Path": "string",
  "Args": [
    "string"
  ],
  "State": {
    "Status": "running",
    "Running": true,
    "Paused": false,
    "Restarting": false,
    "OOMKilled": false,
    "Dead": false,
    "Pid": 1234,
    "ExitCode": 0,
    "Error": "string",
    "StartedAt": "2020-01-06T09:06:59.461876391Z",
    "FinishedAt": "2020-01-06T09:07:59.461876391Z",
    "Health": {
      "Status": "healthy",
      "FailingStreak": 0,
      "Log": [
        {
          "Start": "2020-01-04T10:44:24.496525531Z",
          "End": "2020-01-04T10:45:21.364524523Z",
          "ExitCode": 0,
          "Output": "string"
        }
      ]
    }
  },
  "Image": "string",
  "ResolvConfPath": "string",
  "HostnamePath": "string",
  "HostsPath": "string",
  "LogPath": "string",
  "Name": "string",
  "RestartCount": 42,
  "Driver": "string",
  "Platform": "string",
  "MountLabel": "string",
  "ProcessLabel": "string",
  "AppArmorProfile": "string",
  "ExecIDs": [
    "string"
  ],
  "HostConfig": {
    "CpuShares": 42,
    "Memory": 0,
    "CgroupParent": "string",
    "BlkioWeight": 42,
    "BlkioWeightDevice": [
      {
        "Path": "string",
        "Weight": 42
      }
    ],
    "BlkioDeviceReadBps": [
      {
        "Path": "string",
        "Rate": 42
      }
    ],
    "BlkioDeviceWriteBps": [
      {
        "Path": "string",
        "Rate": 42
      }
    ],
    "BlkioDeviceReadIOps": [
      {
        "Path": "string",
        "Rate": 42
      }
    ],
    "BlkioDeviceWriteIOps": [
      {
        "Path": "string",
        "Rate": 42
      }
    ],
    "CpuPeriod": 42,
    "CpuQuota": 42,
    "CpuRealtimePeriod": 42,
    "CpuRealtimeRuntime": 42,
    "CpusetCpus": "0-3",
    "CpusetMems": "string",
    "Devices": [
      {
        "PathOnHost": "/dev/deviceName",
        "PathInContainer": "/dev/deviceName",
        "CgroupPermissions": "mrw"
      }
    ],
    "DeviceCgroupRules": [
      "c 13:* rwm"
    ],
    "DeviceRequests": [
      {
        "Driver": "nvidia",
        "Count": -1,
        "DeviceIDs": [
          "0",
          "1",
          "GPU-fef8089b-4820-abfc-e83e-94318197576e"
        ],
        "Capabilities": [
          [
            "gpu",
            "nvidia",
            "compute"
          ]
        ],
        "Options": {
          "additionalProperty1": "string",
          "additionalProperty2": "string"
        }
      }
    ],
    "KernelMemoryTCP": 42,
    "MemoryReservation": 42,
    "MemorySwap": 42,
    "MemorySwappiness": 42,
    "NanoCpus": 42,
    "OomKillDisable": true,
    "Init": true,
    "PidsLimit": 42,
    "Ulimits": [
      {
        "Name": "string",
        "Soft": 42,
        "Hard": 42
      }
    ],
    "CpuCount": 42,
    "CpuPercent": 42,
    "IOMaximumIOps": 42,
    "IOMaximumBandwidth": 42,
    "Binds": [
      "string"
    ],
    "ContainerIDFile": "string",
    "LogConfig": {
      "Type": "json-file",
      "Config": {
        "additionalProperty1": "string",
        "additionalProperty2": "string"
      }
    },
    "NetworkMode": "string",
    "PortBindings": {
      "53/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "53"
        }
      ],
      "80/tcp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        },
        {
          "HostIp": "0.0.0.0",
          "HostPort": "8080"
        }
      ],
      "80/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        }
      ],
      "443/tcp": [
        {
          "HostIp": "127.0.0.1",
          "HostPort": "4443"
        }
      ],
      "2377/tcp": null
    },
    "RestartPolicy": {
      "Name": "",
      "MaximumRetryCount": 42
    },
    "AutoRemove": true,
    "VolumeDriver": "string",
    "VolumesFrom": [
      "string"
    ],
    "Mounts": [
      {
        "Target": "string",
        "Source": "string",
        "Type": "bind",
        "ReadOnly": true,
        "Consistency": "string",
        "BindOptions": {
          "Propagation": "private",
          "NonRecursive": false,
          "CreateMountpoint": false,
          "ReadOnlyNonRecursive": false,
          "ReadOnlyForceRecursive": false
        },
        "VolumeOptions": {
          "NoCopy": false,
          "Labels": {
            "additionalProperty1": "string",
            "additionalProperty2": "string"
          },
          "DriverConfig": {
            "Name": "string",
            "Options": {
              "additionalProperty1": "string",
              "additionalProperty2": "string"
            }
          }
        },
        "TmpfsOptions": {
          "SizeBytes": 42,
          "Mode": 42
        }
      }
    ],
    "ConsoleSize": [
      42
    ],
    "Annotations": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "CapAdd": [
      "string"
    ],
    "CapDrop": [
      "string"
    ],
    "CgroupnsMode": "private",
    "Dns": [
      "string"
    ],
    "DnsOptions": [
      "string"
    ],
    "DnsSearch": [
      "string"
    ],
    "ExtraHosts": [
      "string"
    ],
    "GroupAdd": [
      "string"
    ],
    "IpcMode": "string",
    "Cgroup": "string",
    "Links": [
      "string"
    ],
    "OomScoreAdj": 500,
    "PidMode": "string",
    "Privileged": true,
    "PublishAllPorts": true,
    "ReadonlyRootfs": true,
    "SecurityOpt": [
      "string"
    ],
    "StorageOpt": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "Tmpfs": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "UTSMode": "string",
    "UsernsMode": "string",
    "ShmSize": 42,
    "Sysctls": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "Runtime": "string",
    "Isolation": "default",
    "MaskedPaths": [
      "string"
    ],
    "ReadonlyPaths": [
      "string"
    ]
  },
  "GraphDriver": {
    "Name": "overlay2",
    "Data": {
      "WorkDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/work",
      "UpperDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/diff",
      "MergedDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/merged"
    }
  },
  "SizeRw": 42,
  "SizeRootFs": 42,
  "Mounts": [
    {
      "Type": "volume",
      "Name": "myvolume",
      "Source": "/var/lib/docker/volumes/myvolume/_data",
      "Destination": "/usr/share/nginx/html/",
      "Driver": "local",
      "Mode": "z",
      "RW": true,
      "Propagation": "string"
    }
  ],
  "Config": {
    "Hostname": "439f4e91bd1d",
    "Domainname": "string",
    "User": "string",
    "AttachStdin": false,
    "AttachStdout": true,
    "AttachStderr": true,
    "ExposedPorts": {
      "80/tcp": {},
      "443/tcp": {}
    },
    "Tty": false,
    "OpenStdin": false,
    "StdinOnce": false,
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    ],
    "Cmd": [
      "/bin/sh"
    ],
    "Healthcheck": {
      "Test": [
        "string"
      ],
      "Interval": 42,
      "Timeout": 42,
      "Retries": 42,
      "StartPeriod": 42,
      "StartInterval": 42
    },
    "ArgsEscaped": false,
    "Image": "example-image:1.0",
    "Volumes": {
      "additionalProperty1": {},
      "additionalProperty2": {}
    },
    "WorkingDir": "/public/",
    "Entrypoint": [
      "string"
    ],
    "NetworkDisabled": true,
    "MacAddress": "string",
    "OnBuild": [
      "string"
    ],
    "Labels": {
      "com.example.some-label": "some-value",
      "com.example.some-other-label": "some-other-value"
    },
    "StopSignal": "SIGTERM",
    "StopTimeout": 10,
    "Shell": [
      "/bin/sh",
      "-c"
    ]
  },
  "NetworkSettings": {
    "Bridge": "docker0",
    "SandboxID": "9d12daf2c33f5959c8bf90aa513e4f65b561738661003029ec84830cd503a0c3",
    "HairpinMode": false,
    "LinkLocalIPv6Address": "string",
    "LinkLocalIPv6PrefixLen": 42,
    "Ports": {
      "53/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "53"
        }
      ],
      "80/tcp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        },
        {
          "HostIp": "0.0.0.0",
          "HostPort": "8080"
        }
      ],
      "80/udp": [
        {
          "HostIp": "0.0.0.0",
          "HostPort": "80"
        }
      ],
      "443/tcp": [
        {
          "HostIp": "127.0.0.1",
          "HostPort": "4443"
        }
      ],
      "2377/tcp": null
    },
    "SandboxKey": "/var/run/docker/netns/8ab54b426c38",
    "SecondaryIPAddresses": [
      {
        "Addr": "string",
        "PrefixLen": 42
      }
    ],
    "SecondaryIPv6Addresses": [
      {
        "Addr": "string",
        "PrefixLen": 42
      }
    ],
    "EndpointID": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
    "Gateway": "172.17.0.1",
    "GlobalIPv6Address": "2001:db8::5689",
    "GlobalIPv6PrefixLen": 64,
    "IPAddress": "172.17.0.4",
    "IPPrefixLen": 16,
    "IPv6Gateway": "2001:db8:2::100",
    "MacAddress": "02:42:ac:11:00:04",
    "Networks": {
      "additionalProperty1": {
        "IPAMConfig": {
          "IPv4Address": "172.20.30.33",
          "IPv6Address": "2001:db8:abcd::3033",
          "LinkLocalIPs": [
            "169.254.34.68",
            "fe80::3468"
          ]
        },
        "Links": [
          "container_1",
          "container_2"
        ],
        "MacAddress": "02:42:ac:11:00:04",
        "Aliases": [
          "server_x",
          "server_y"
        ],
        "NetworkID": "08754567f1f40222263eab4102e1c733ae697e8e354aa9cd6e18d7402835292a",
        "EndpointID": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
        "Gateway": "172.17.0.1",
        "IPAddress": "172.17.0.4",
        "IPPrefixLen": 16,
        "IPv6Gateway": "2001:db8:2::100",
        "GlobalIPv6Address": "2001:db8::5689",
        "GlobalIPv6PrefixLen": 64,
        "DriverOpts": {
          "com.example.some-label": "some-value",
          "com.example.some-other-label": "some-other-value"
        },
        "DNSNames": [
          "foobar",
          "server_x",
          "server_y",
          "my.ctr"
        ]
      },
      "additionalProperty2": {
        "IPAMConfig": {
          "IPv4Address": "172.20.30.33",
          "IPv6Address": "2001:db8:abcd::3033",
          "LinkLocalIPs": [
            "169.254.34.68",
            "fe80::3468"
          ]
        },
        "Links": [
          "container_1",
          "container_2"
        ],
        "MacAddress": "02:42:ac:11:00:04",
        "Aliases": [
          "server_x",
          "server_y"
        ],
        "NetworkID": "08754567f1f40222263eab4102e1c733ae697e8e354aa9cd6e18d7402835292a",
        "EndpointID": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
        "Gateway": "172.17.0.1",
        "IPAddress": "172.17.0.4",
        "IPPrefixLen": 16,
        "IPv6Gateway": "2001:db8:2::100",
        "GlobalIPv6Address": "2001:db8::5689",
        "GlobalIPv6PrefixLen": 64,
        "DriverOpts": {
          "com.example.some-label": "some-value",
          "com.example.some-other-label": "some-other-value"
        },
        "DNSNames": [
          "foobar",
          "server_x",
          "server_y",
          "my.ctr"
        ]
      }
    }
  }
}
Response examples (404)
{
  "message": "No such container: c2ada9df5af8"
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}