Skip to content

Commit df826ae

Browse files
author
GitHub Action
committed
Deployed 97bc115 to 8.0 with MkDocs 1.5.3 and mike 2.0.0
1 parent c789f5e commit df826ae

File tree

4 files changed

+228
-228
lines changed

4 files changed

+228
-228
lines changed

8.0/docker.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -6945,7 +6945,7 @@ <h2 id="starting-a-detached-container">Starting a detached container<a class="he
69456945
<p>By default, Docker pulls the image from Docker Hub if it is not
69466946
available locally.</p>
69476947
<p>To view the container&rsquo;s logs, use the following command:</p>
6948-
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>logs<span class="w"> </span>ps<span class="w"> </span>--follow
6948+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span>logs<span class="w"> </span>ps<span class="w"> </span>--follow
69496949
</code></pre></div>
69506950
<details class="example">
69516951
<summary>Expected output</summary>
@@ -7018,7 +7018,7 @@ <h4 id="using-docker-platform-for-emulation">Using Docker <code>--platform</code
70187018
<p>Be sure to test the image throughly before using it in production.</p>
70197019
<h2 id="passing-options">Passing Options<a class="headerlink" href="#passing-options" title="Permanent link">&para;</a></h2>
70207020
<p>You can pass options with the <code>docker run</code> command. For example, the following command uses UTF-8 as the default setting for character set and collation for all databases:</p>
7021-
<div class="highlight"><pre><span></span><code><span class="o">[</span>root@docker-host<span class="o">]</span><span class="w"> </span>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
7021+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
70227022
<span class="w"> </span>--name<span class="w"> </span>ps<span class="w"> </span><span class="se">\</span>
70237023
<span class="w"> </span>-e<span class="w"> </span><span class="nv">MYSQL_ROOT_PASSWORD</span><span class="o">=</span>root<span class="w"> </span><span class="se">\</span>
70247024
<span class="w"> </span>percona/percona-server:8.0<span class="w"> </span><span class="se">\</span>
@@ -7028,7 +7028,7 @@ <h2 id="passing-options">Passing Options<a class="headerlink" href="#passing-opt
70287028
<h2 id="accessing-the-percona-server-container">Accessing the Percona Server Container<a class="headerlink" href="#accessing-the-percona-server-container" title="Permanent link">&para;</a></h2>
70297029
<p>The <code>docker exec</code> command lets you have a shell inside the container. This command uses <code>it</code> which forwards your input stream as an interactive TTY.</p>
70307030
<p>An example of accessing the detached container:</p>
7031-
<div class="highlight"><pre><span></span><code><span class="o">[</span>root@docker-host<span class="o">]</span><span class="w"> </span>$<span class="w"> </span>docker<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>-it<span class="w"> </span>ps<span class="w"> </span>/bin/bash
7031+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span><span class="nb">exec</span><span class="w"> </span>-it<span class="w"> </span>ps<span class="w"> </span>/bin/bash
70327032
</code></pre></div>
70337033
<p>If you need to troubleshoot, the error log is found in <code>/var/log/</code> or <code>/var/log/mysql/</code>. The file name may be error.log or mysqld.log.</p>
70347034
<h2 id="troubleshooting">Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permanent link">&para;</a></h2>
@@ -7085,7 +7085,7 @@ <h2 id="accessing-the-server-from-an-application-in-another-container">Accessing
70857085
(in this case, from an image named <code>app/image</code>)
70867086
with the Percona Server container,
70877087
run it with the following command:</p>
7088-
<div class="highlight"><pre><span></span><code><span class="o">[</span>root@docker-host<span class="o">]</span><span class="w"> </span>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
7088+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
70897089
<span class="w"> </span>--name<span class="w"> </span>app<span class="w"> </span><span class="se">\</span>
70907090
<span class="w"> </span>--link<span class="w"> </span>ps<span class="w"> </span><span class="se">\</span>
70917091
<span class="w"> </span>app/image:latest
@@ -7112,7 +7112,7 @@ <h2 id="storing-data">Storing data<a class="headerlink" href="#storing-data" tit
71127112
<p>For example, if you create a data directory on a suitable volume
71137113
on your host system named <code>/local/datadir</code>,
71147114
you run the container with the following command:</p>
7115-
<div class="highlight"><pre><span></span><code><span class="o">[</span>root@docker-host<span class="o">]</span><span class="w"> </span>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
7115+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
71167116
<span class="w"> </span>--name<span class="w"> </span>ps<span class="w"> </span><span class="se">\</span>
71177117
<span class="w"> </span>-e<span class="w"> </span><span class="nv">MYSQL_ROOT_PASSWORD</span><span class="o">=</span>root<span class="w"> </span><span class="se">\</span>
71187118
<span class="w"> </span>-v<span class="w"> </span>/local/datadir:/var/lib/mysql<span class="w"> </span><span class="se">\</span>
@@ -7127,7 +7127,7 @@ <h2 id="storing-data">Storing data<a class="headerlink" href="#storing-data" tit
71277127
<p class="admonition-title">Note</p>
71287128
<p>If you have SELinux enabled, assign the relevant policy type to the new data directory so that the container will be allowed to access it:</p>
71297129
</div>
7130-
<div class="highlight"><pre><span></span><code>[root@docker-host] $ chcon -Rt svirt_sandbox_file_t /local/datadir
7130+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>chcon<span class="w"> </span>-Rt<span class="w"> </span>svirt_sandbox_file_t<span class="w"> </span>/local/datadir
71317131
</code></pre></div>
71327132
<h2 id="port-forwarding">Port forwarding<a class="headerlink" href="#port-forwarding" title="Permanent link">&para;</a></h2>
71337133
<p>Docker allows mapping ports on the container to ports on the host system
@@ -7137,7 +7137,7 @@ <h2 id="port-forwarding">Port forwarding<a class="headerlink" href="#port-forwar
71377137
to a port on the host machine.
71387138
This ability simplifies consolidating instances to a single host.</p>
71397139
<p>To map the standard MySQL port 3306 to port 6603 on the host:</p>
7140-
<div class="highlight"><pre><span></span><code><span class="o">[</span>root@docker-host<span class="o">]</span><span class="w"> </span>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
7140+
<div class="highlight" data-prompt="$"><pre><span></span><code>$<span class="w"> </span>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
71417141
<span class="w"> </span>--name<span class="w"> </span>ps<span class="w"> </span><span class="se">\</span>
71427142
<span class="w"> </span>-e<span class="w"> </span><span class="nv">MYSQL_ROOT_PASSWORD</span><span class="o">=</span>root<span class="w"> </span><span class="se">\</span>
71437143
<span class="w"> </span>-p<span class="w"> </span><span class="m">6603</span>:3306<span class="w"> </span><span class="se">\</span>
@@ -7173,7 +7173,7 @@ <h2 class="title" id="get-expert-help">Get expert help<a class="headerlink" href
71737173
<small>
71747174

71757175
Last update:
7176-
2024-03-04
7176+
2024-03-13
71777177

71787178
</small>
71797179
</div>

8.0/search/search_index.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)