Site updated at 2018-03-10 08:09:35 UTC
This commit is contained in:
parent
1fe241bb2c
commit
ba8b0e90a4
27 changed files with 74 additions and 74 deletions
|
@ -81,7 +81,7 @@
|
|||
</code></pre>
|
||||
</div>
|
||||
<h3><a class="title-link" name="macos" href="#macos"></a> macOS</h3>
|
||||
<p>When using <code class="highlighter-rouge">docker-ce</code> (or <code class="highlighter-rouge">boot2docker</code>) on macOS, you are unable to map the local timezone to your Docker container (see Docker issue https://github.com/docker/for-mac/issues/44). Instead of <code class="highlighter-rouge">-v /etc/localtime:/etc/localtime:ro</code>, just pass in the timezone environment variable when you launch the container, ex: <code class="highlighter-rouge">-e "TZ=America/Los_Angeles"</code>. Replace “America/Los_Angeles” with <a href="http://en.wikipedia.org/wiki/List_of_tz_database_time_zones">your timezone</a>.</p>
|
||||
<p>When using <code class="highlighter-rouge">docker-ce</code> (or <code class="highlighter-rouge">boot2docker</code>) on macOS, you are unable to map the local timezone to your Docker container (<a href="https://github.com/docker/for-mac/issues/44">Docker issue</a>). Instead of <code class="highlighter-rouge">-v /etc/localtime:/etc/localtime:ro</code>, just pass in the timezone environment variable when you launch the container, ex: <code class="highlighter-rouge">-e "TZ=America/Los_Angeles"</code>. Replace “America/Los_Angeles” with <a href="http://en.wikipedia.org/wiki/List_of_tz_database_time_zones">your timezone</a>.</p>
|
||||
<p>If you wish to browse directly to <code class="highlighter-rouge">http://localhost:8123</code> from your macOS host, meaning forward ports directly to the container, replace the <code class="highlighter-rouge">--net=host</code> switch with <code class="highlighter-rouge">-p 8123:8123</code>. More detail can be found in <a href="https://forums.docker.com/t/should-docker-run-net-host-work/14215/10">the docker forums</a>.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>docker run -d --name<span class="o">=</span><span class="s2">"home-assistant"</span> -v /path/to/your/config:/config -e <span class="s2">"TZ=America/Los_Angeles"</span> -p 8123:8123 homeassistant/home-assistant
|
||||
</code></pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue