-1

我最近开始尝试使用 LXD 容器并遇到了一个我似乎无法解决的基本障碍。

我无法apt updated在容器内运行

ubuntu@dev:~$ lxc exec adil-php5 -- apt update
....
Err http://archive.ubuntu.com trusty Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-backports Release.gpg
  Could not resolve 'archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
  Could not resolve 'security.ubuntu.com'
....

一篇文章建议切换到 nictype macvlan。那也没有帮助。我的货币“默认”配置文件是:

lxc profile show default
name: default
config: {}
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic

主机:ubuntu 16.04 容器:ubuntu 14.04

4

1 回答 1

0

如果您没有订阅 LXC 用户邮件列表,我建议您订阅。

LXD 开发人员和许多其他有经验的 LXD 用户每天都会在 LXD 和 LXC 上观看该列表并回答问题......

https://lists.linuxcontainers.org/listinfo/lxc-users

于 2017-01-05T22:50:18.353 回答