我正在尝试在我的ubuntu:14.04镜像中安装'sl'软件包。这是我的Dockerfile的内容:
FROM ubuntu:14.04
MAINTAINER xyz <xyz@gmail.com>
RUN echo 'Going to install sl now'
RUN apt-get install -y sl
这是我用来构建镜像的命令:
sudo docker build -t xyz/ubuntu:14.04 .
但是我收到了这个错误信息:
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
---> d0955f21bf24
Step 1 : MAINTAINER xyz <xyz@gmail.com>
---> Using cache
---> a6e08926e788
Step 2 : RUN echo 'Going to install sl now'
---> Using cache
---> 1bf0bc6b3092
Step 3 : RUN apt-get install -y sl
---> Running in f7e57167443f
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package sl
INFO[0004] The command [/bin/sh -c apt-get install -y sl] returned a non-zero code: 100
我哪里做错了?