This commit is contained in:
felixfontein
2023-05-15 20:01:36 +00:00
parent 311dd5f9d1
commit 52f8945f46
7 changed files with 44 additions and 24 deletions
@@ -299,6 +299,7 @@ see <a class="reference internal" href="#ansible-collections-community-docker-do
<p>One way to connect to containers is to use SSH (<code class="docutils literal notranslate"><span class="pre">ssh</span></code>). For this, the options <em>default_ip</em> and <em>private_ssh_port</em> are used. This requires that a SSH daemon is running inside the containers.</p>
<p>Alternatively, <code class="docutils literal notranslate"><span class="pre">docker-cli</span></code> selects the <a class="reference internal" href="docker_connection.html#ansible-collections-community-docker-docker-connection"><span class="std std-ref">docker connection plugin</span></a>, and <code class="docutils literal notranslate"><span class="pre">docker-api</span></code> (default) selects the <a class="reference internal" href="docker_api_connection.html#ansible-collections-community-docker-docker-api-connection"><span class="std std-ref">docker_api connection plugin</span></a>.</p>
<p>When <code class="docutils literal notranslate"><span class="pre">docker-api</span></code> is used, all Docker daemon configuration values are passed from the inventory plugin to the connection plugin. This can be controlled with <em>configure_docker_daemon</em>.</p>
<p>Note that the <a class="reference internal" href="docker_api_connection.html#ansible-collections-community-docker-docker-api-connection"><span class="std std-ref">docker_api connection plugin</span></a> does <strong>not work with TCP TLS sockets</strong>! See <a class="reference external" href="https://github.com/ansible-collections/community.docker/issues/605">https://github.com/ansible-collections/community.docker/issues/605</a> for more information.</p>
<p class="ansible-option-line"><span class="ansible-option-choices">Choices:</span></p>
<ul class="simple">
<li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">&quot;ssh&quot;</span></code></p></li>