2016-12-01 8 views
1

Я пытался создать новое изображение с помощью существующего файла Docker. Похоже, что в какой-то момент он возобновил работу с кешем. Но сборка не сильно изменилась с очень простых шагов, таких как apt installs/updates. Как получить дополнительную информацию о фактической ошибке и о том, как ее восстановить? большое спасибо!Изображение здания docker из файла Docker: невозможно запустить контейнер

... 
Step 15 : RUN apt-get install -y cron 
---> Using cache 
---> a2a6dea37a20 
Step 16 : RUN apt-get install -y vim 
---> Using cache 
---> a2a5dea37a19 
Step 17 : RUN apt-get install -y debsecan 
---> Using cache 
---> cc2aa4c994c2 
Step 18 : RUN apt-get install -y links 
---> Using cache 
---> abb32d4543f6 
Step 19 : RUN apt-get update 
---> Running in 68c12197bcfd 
Cannot start container 68c12197bcfd12f39e669dc4ba1f1dc07a6fde07c675b6e763...: [9] System error: exit status 1 

докер версия

Client: 
Version:   1.10.3 
API version:  1.22 
Package version: docker-common-1.10.3-46.el7.14.x86_64 
Go version:  go1.6.3 
Git commit:  8f9d39a-unsupported 
Built:   Thu Sep 15 11:51:19 2016 
OS/Arch:   linux/amd64 

Server: 
Version:   1.10.3 
API version:  1.22 
Package version: docker-common-1.10.3-46.el7.14.x86_64 
Go version:  go1.6.3 
Git commit:  8f9d39a-unsupported 
Built:   Thu Sep 15 11:51:19 2016 
OS/Arch:   linux/amd64 



FROM debian:latest 

MAINTAINER [email protected] 

RUN apt-get update 
RUN apt-get upgrade -y 
RUN apt-get update 
RUN apt-get install -y sudo 
RUN apt-get install -y dialog 
RUN apt-get install -y curl 
RUN apt-get install -y wget 
RUN apt-get install -y vim 
RUN apt-get install -y net-tools 
RUN apt-get install -y apt-utils 
RUN apt-get install -y net-tools 
RUN apt-get install -y cron 
RUN apt-get install -y vim 
RUN apt-get install -y debsecan 
RUN apt-get install -y links 
RUN apt-get update 
RUN apt-get install -y apache2 
RUN cd /var/www && mv html htmlapache 
RUN mkdir -p /var/www/html/repo 
RUN touch /var/www/html/index.html 
COPY entrypoint.sh/
RUN apt-get -y install salt-master 
CMD [ "/entrypoint.sh" ] 
EXPOSE 8000 
+0

вы читали через [это] (https://bugzilla.redhat.com/show_bug. CGI? ID = 1322886)? – jsfan

+2

Показать файл Docker – user2915097

+0

Dockerfile пожалуйста :) Потому что в этом выпуске есть какие-то напуганные вещи. – johnharris85

ответ

1

Вам не нужно звонить apt-get update много раз. Это также хорошая практика, чтобы обновить и установить все пакеты в одном ряду, потому что создать только один слой в Докер изображения

FROM debian:latest 

MAINTAINER [email protected] 

RUN apt-get update \ 
    && upgrade -y \ 
    && apt-get install -y sudo dialog curl wget vim net-tools apt-utils net-tools cron vim debsecan links apache2 salt-master 
RUN cd /var/www && mv html htmlapache 
RUN mkdir -p /var/www/html/repo 
RUN touch /var/www/html/index.html 
COPY entrypoint.sh/
CMD [ "/entrypoint.sh" ] 
EXPOSE 8000 
+0

такие же результаты. Отправка контекста сборки на Docker daemon 10.24 kB Не удается запустить контейнер 8ae238 ...: [9] Системная ошибка: статус выхода 1 – martin

+0

Попробуйте перезагрузить службу докеров, потому что похоже, что конвейер докера поврежден – Rudis

Смежные вопросы