🚀Astro-notion-blog

Notion記事をAstroを利用してブログ化

DebianにインストールしたDockerが起動しない

Debian12にDocker公式HPを参照しながら、Dockerをインストールしたものの、containerdは起動するが、

systemctl start dockerでコケる

Failed to start docker.service - Docker Application Container Engine.

journalctl -xeu docker.serviceでログを見てみると下記のエラーが出てた

service-start-limit-hit

このエラーの解決方法を調べていくうちに、気づいた。

そうだ、Debainではiptablesを変更する必要があったのを、すっかり忘れてた

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

これで動くだろう!と再度Dockerを起動しても同じエラーで起動せず

OSの再起動が必要だった!