安装软件包以下是一些出现在我的系统中的泊坞窗形象:无法在搬运工集装箱
[email protected]:/home/labadmin# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 14.04 1e0c3dd64ccd 13 days ago 187.9 MB
ubuntu latest 45bc58500fa3 5 weeks ago 126.9 MB
我想在容器中安装“了smartmontools”。但它抛出一个错误“无法找到包了smartmontools”如下:
[email protected]:/home/labadmin# docker run -it 1e0c3dd64ccd
[email protected]:/# apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package smartmontools
[email protected]:/# exit
exit
但是,当我做同样的在Ubuntu的机器,它正在。
[email protected]:/home/labadmin# apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
***smartmontools is already the newest version.***
0 upgraded, 0 newly installed, 0 to remove and 542 not upgraded.
[email protected]:/home/labadmin#
Ubuntu Containers和Ubuntu系统有什么区别?什么阻止软件包安装在容器中?
我的要求是创建一些公用事业与Ubuntu OS中的集装箱为基础的图像:
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y smartmontools
可上网容器内? – Rao
是的,工作,但看起来像DNS问题。 –
你的发现是什么? – Rao