<?xml version="1.0"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
	"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
]>
<reference id="api-docker">
  <title>API: docker</title>

  <partintro>
    <para>This package contains components for control of Docker containers.</para>
  </partintro>

  <refentry id="api-console-html">
    <refmeta>
      <refentrytitle>console.html</refentrytitle>
    </refmeta>

    <refnamediv>
      <refname>console.html</refname>
      <refpurpose>Container console component</refpurpose>
    </refnamediv>

    <refsection id="api-console-html-description">
      <title>Description</title>
<programlisting>
&lt;iframe src="http://server:9090/cockpit/@localhost/docker/console.html"
    width="600" height="400"&gt;&lt;/iframe&gt;
</programlisting>

      <para>This is a Cockpit component that shows a live console for the container.
        If the container has a TTY then this will be a live interactive terminal,
        otherwise this shows log output.</para>

      <variablelist>
        <varlistentry>
          <term>Component URL</term>
          <listitem><para><code>/cockpit/@localhost/docker/console.html</code></para></listitem>
        </varlistentry>
        <varlistentry>
          <term>Container Identifier</term>
          <listitem>
            <para><code>#/6e272d82993c4e0d...</code></para>
            <para>The complete container identifier must be provided as shown in the hash above.</para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsection>
  </refentry>

</reference>
