2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu18.04のLXDコンテナ上でDockerが起動しない問題の対応

Posted at

以下の記事の続きです。

LXDコンテナでDockerが起動しない(起動に失敗する)問題への対応方法
https://qiita.com/tabimoba/items/4f7af774145c0dbd70d9

前回は特定のserviceファイルを変更するという方法で書きましたが、この方法でも解決しない場合がありました。また、serviceファイルを書き換えるという方法自体が微妙な感じでした。

現在は、以下のような形で、コンテナを作成後にconfigに値を与えたうえでコンテナを起動させることで、LXDコンテナ上でDockerが利用できるようになります。

# lxc init <イメージ名> <コンテナ名>
# lxc config set <コンテナ名> linux.kernel_modules overlay
# lxc config set <コンテナ名> security.nesting true
# lxc config set <コンテナ名> security.privileged true
# lxc start <コンテナ名>
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?