我刚刚在fedora 18系统上安装了docker:
Linux draco 3.8.4-202.fc18.x86_64 #1 SMP Thu Mar 21 17:02:20 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[mike@draco docker-master]$ sudo ./docker run -i -t base /bin/bash
2013/04/02 08:24:59 net: no such interface
谁能告诉我这里遗漏了什么?安装了lxc、lxc-libs和lxc-template。
我正在创建一个新的码头容器,以便在Gentoo操作系统中运行OpenVpn。为此,我需要配置带有tun/tap模块的内核,并安装它:
cd /usr/src/linux
做菜单配置
设备驱动程序->网络设备支持->
*网络设备支持
必须启用通用TUN/TAP设备驱动程序支持//此选项
cd /usr/src/linux make & make &make modules_install
现在,我需要在容器中安装这个内核,并继续安装openVPN,但不知道我是如何做到的。
有什么建议吗?
谢谢
我以前用的是码头1.3,效果很好。升级到码头1.5后出现了一些问题。我的lxc有什么事吗?我已经尝试过apt-get purge lxc和apt-get install lxc重新安装它。
➜ ~ sudo docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.
我正在尝试运行docker,但还是失败了。以下是我得到的结果
root@c1170137:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Extracting 974 B/974 B
docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: permission de
我刚做了一个do-release-upgrade -m server
Linux boson 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 Linux-3.19.0-31-generic-x86_64-with-Ubuntu-15.04-vivid
至
Linux boson 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 Linux-4.2.0-16-generic-x86_64-with-Ubuntu-15.10-w
我想在现有的lxc中执行一个命令,而不需要经过常规的Linux。lxc-execute命令是用于这个目的的,但是当我在现有的测试lxc上运行这个命令时,我会得到以下错误。
sudo lxc-execute -n test -- service apache2 start
我得到以下错误:
lxc-execute: Failed to find an lxc-init
lxc-execute: invalid sequence number 1. expected 4
lxc-execute: failed to spawn 'test'
我有一个基本的最新安装18.04服务器。在默认安装之上只添加了宇宙存储库。没有第三方回购。
当我试图安装软件包lxc时,会出现以下错误:
lxc : Depends: lxc-utils (>= 3.0.0-0ubuntu2) but it is not going to be installed
所以我试着安装lxc-utils。但它也有坏的依赖关系:
lxc-utils : Depends: liblxc1 (= 3.0.0-0ubuntu2) but 3.0.1-0ubuntu1~18.04.2 is to be installed
这是有意的吗,我现在应该使用其他的LXC功能吗?
问题是mod探测和iptables不能在LXC容器中工作。
LXC是用于Linux容器的用户空间控制包,这是一种轻量级的虚拟系统机制,有时被描述为“类固醇上的chroot”。
容器中的iptables错误是:
# iptables -I INPUT -s 122.129.126.194 -j DROP
> iptables v1.4.8: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kerne