安裝軟件包以下是一些出現在我的系統中的泊塢窗形象:無法在搬運工集裝箱
[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