# Dockerがipv6をオフにした後、ホストで実行されなくなり、常に再起動しています

**URL:** <https://meta.discourse.org/t/docker-constantly-restarting-after-turning-off-ipv6-no-longer-running-on-the-host/260277>\
**Category:** Self-hosting\
**Created:** [2023 年 4 月 2 日午後 7:19 UTC](https://meta.discourse.org/t/docker-constantly-restarting-after-turning-off-ipv6-no-longer-running-on-the-host/260277 "2023-04-02T19:19:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![djnoah](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@djnoah](https://meta.discourse.org/u/djnoah)\
**Post date:** [2023 年 4 月 2 日午後 7:19 UTC](https://meta.discourse.org/t/docker-constantly-restarting-after-turning-off-ipv6-no-longer-running-on-the-host/260277/1 "2023-04-02T19:19:45Z")

</div>

ここで解決策が見つかりません。ホストでIPv6を無効にしましたが、Discourse Dockerが再起動し続けています。

アプリを再構築しました  
— スニップ —  
cd /var/discourse  
./launcher rebuild app  
— スニップ —

Dockerログには次のように表示されています。プロトコルでサポートされていないアドレスファミリのようです。

---- スニップ ----

> Blockquote  
> [Sun 02 Apr 2023 06:46:23 PM UTC] Reload error for :  
> nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)  
> run-parts: /etc/runit/1.d/letsencrypt exited with return code 1  
> run-parts: executing /etc/runit/1.d/00-ensure-links  
> run-parts: executing /etc/runit/1.d/00-fix-var-logs  
> run-parts: executing /etc/runit/1.d/01-cleanup-web-pids  
> run-parts: executing /etc/runit/1.d/anacron  
> run-parts: executing /etc/runit/1.d/cleanup-pids  
> Cleaning stale PID files  
> run-parts: executing /etc/runit/1.d/copy-env  
> run-parts: executing /etc/runit/1.d/letsencrypt  
> nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Domains not changed.  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Skip, Next renewal time is: Tue 02 May 2023 11:52:23 PM UTC  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Add ‘–force’ to force to renew.  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Installing key to:/shared/ssl/\<domain\_removed\>.key  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Installing full chain to:/shared/ssl/\<domain\_removed\>.cer  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Run reload cmd: sv reload nginx  
> fail: nginx: runsv not running  
> [Sun 02 Apr 2023 06:47:24 PM UTC] Reload error for :  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Domains not changed.  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Skip, Next renewal time is: Tue 02 May 2023 11:52:26 PM UTC  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Add ‘–force’ to force to renew.  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Installing key to:/shared/ssl/\<domain\_removed\>\_ecc.key  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Installing full chain to:/shared/ssl/\<domain\_removed\>\_ecc.cer  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Run reload cmd: sv reload nginx  
> fail: nginx: runsv not running  
> [Sun 02 Apr 2023 06:47:25 PM UTC] Reload error for :  
> nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)  
> run-parts: /etc/runit/1.d/letsencrypt exited with return code 1

---

_[View the full topic](https://meta.discourse.org/t/docker-constantly-restarting-after-turning-off-ipv6-no-longer-running-on-the-host/260277)._
