Linux Mint中的Docker错误

时间:2015-03-01 14:16:09

标签: docker linuxmint

我正在尝试在Docker中运行一个容器,但对于任何容器我总是得到同样的错误:

`sudo docker -D run -p 49160:22 -p 49161:1521 -p 49162:8080 alexeiled / docker-oracle-xe-11g

2015/03/01 14:01:15 [debug] stdcopy.go:112 framesize:81 2015/03/01 14:05:48不允许使用finalize namespace drop capabilities操作 [debug] hijack.go:96 [hijack] stdout结束 [debug] commands.go:2004 CmdRun()结束,等待劫持完成。

日志文件没有告诉我: - /

2015/03/01 15:10:08 POST /v1.12/containers/create [babaacd3] +job create() [babaacd3] -job create() = OK (0) 2015/03/01 15:10:09 POST /v1.12/containers/cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d/attach?stderr=1&stdout=1&stream=1 [babaacd3] +job container_inspect(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job container_inspect(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] +job attach(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) 2015/03/01 15:10:09 POST /v1.12/containers/cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d/start [babaacd3] +job start(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] +job allocate_interface(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job allocate_interface(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] +job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] +job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] +job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job allocate_port(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] -job start(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] +job release_interface(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) 2015/03/01 15:10:09 Stopping proxy on tcp/[::]:49161 for tcp/172.17.0.4:1521 (accept tcp [::]:49161: use of closed network connection) 2015/03/01 15:10:09 Stopping proxy on tcp/[::]:49160 for tcp/172.17.0.4:22 (accept tcp [::]:49160: use of closed network connection) 2015/03/01 15:10:09 Stopping proxy on tcp/[::]:49162 for tcp/172.17.0.4:8080 (accept tcp [::]:49162: use of closed network connection) [babaacd3] -job release_interface(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) [babaacd3] -job attach(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0) 2015/03/01 15:10:09 POST /v1.12/containers/cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d/wait [babaacd3] +job wait(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) [babaacd3] -job wait(cb137c31e5e98ba97b1600c61aa91055bff4bb039800c0edbaf195be25b2519d) = OK (0)

我使用的内核: Linux pc-desktop 3.13.0-24-generic#47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014 i686 i686 i686 GNU / Linux

有谁知道该怎么做?

编辑: 这是另一个试图运行Adrian Mouats的建议:

user @ user-desktop~ $ sudo docker -D run debian echo Hello World

[debug] stdcopy.go:112 framesize: 38
2015/03/01 15:53:35 exec format error
[debug] hijack.go:96 [hijack] End of stdout
[debug] commands.go:2004 End of CmdRun(), Waiting for hijack to finish.

user @ user-desktop~ $ sudo service docker.io restart

docker.io stop/waiting
docker.io start/running, process 5467

user @ user-desktop~ $ sudo docker -D run debian echo Hello World

[debug] stdcopy.go:112 framesize: 81
2015/03/01 15:53:52 finalize namespace drop capabilities operation not permitted
[debug] hijack.go:96 [hijack] End of stdout
[debug] commands.go:2004 End of CmdRun(), Waiting for hijack to finish.

2 个答案:

答案 0 :(得分:1)

你有一台32位主机。因此,您无法使用为64位Linux构建的标准Docker镜像。

您可能会发现可以从Dockerfiles构建自己的图像,但您无法使用官方图像。

Hub上有一些图像是为32位架构而构建的,你可以试试,例如:https://registry.hub.docker.com/u/32bit/debian/

答案 1 :(得分:1)

我正在使用Linux mint 17.1。安装了docker.io以及来自docker自己网站的lxc-docker。它在某种程度上没有像你的情况那样正确启动。

我必须安装AppArmor才能正确启动。

使用14.04的这组说明: https://docs.docker.com/installation/ubuntulinux/

确保您正在运行此命令:wget -qO- https://get.docker.com/ | SH

安装lxc-docker,它是docker周围的高级包装器,允许正确安装许多其他依赖项。

关于AppArmor上Ubuntu要求的问题: https://github.com/docker/docker/issues/9745