2017-06-29 36 views
1

我創建了一個碼頭工人形象爲我構建流水線,我試圖運行docker build -t someTag .在Debian安裝泊塢窗 - 「疊加」不支持通過overlayfs

不過,我得到這個錯誤。

DEBU[0000] Listener created for HTTP on unix (/var/run/docker.sock) 
INFO[0000] libcontainerd: new containerd process, pid: 1026 
DEBU[0000] Permission denied writing "-500" to /proc/1026/oom_score_adj 
DEBU[0000] containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock 
DEBU[0000] containerd: read past events     count=0 
DEBU[0000] containerd: supervisor running    cpus=2 memory=976 runtime=docker-runc runtimeArgs=[] stateDir="/var/run/docker/libcontainerd/containerd" 
DEBU[0000] libcontainerd: containerd health check returned error: rpc error: code = 14 desc = grpc: the connection is unavailable 
DEBU[0001] Permission denied writing "-500" to /proc/self/oom_score_adj 
DEBU[0001] Using default logging driver json-file 
DEBU[0001] Golang's threads limit set to 6840 
DEBU[0001] [zfs] zfs command is not available: exec: "zfs": executable file not found in $PATH 
ERRO[0001] 'overlay' is not supported over overlayfs 
DEBU[0001] Using graph driver vfs 
DEBU[0001] Max Concurrent Downloads: 3 
DEBU[0001] Max Concurrent Uploads: 5 
INFO[0001] Graph migration to content-addressability took 0.00 seconds 
INFO[0001] Loading containers: start. 
DEBU[0001] Option Experimental: false 
DEBU[0001] Option DefaultDriver: bridge 
DEBU[0001] Option DefaultNetwork: bridge 
WARN[0001] Running modprobe bridge br_netfilter failed with message: , error: exec: "modprobe": executable file not found in $PATH 
WARN[0001] Running modprobe nf_nat failed with message: ``, error: exec: "modprobe": executable file not found in $PATH 
WARN[0001] Running modprobe xt_conntrack failed with message: ``, error: exec: "modprobe": executable file not found in $PATH 
DEBU[0001] Fail to initialize firewalld: Failed to connect to D-Bus system bus: dial unix /var/run/dbus/system_bus_socket: connect: no such file or directory, using raw iptables instead 
DEBU[0001] /usr/sbin/iptables, [-t nat -D PREROUTING -m addrtype --dst-type LOCAL -j DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t nat -D OUTPUT -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t nat -D PREROUTING] 
DEBU[0001] /usr/sbin/iptables, [-t nat -D OUTPUT] 
DEBU[0001] /usr/sbin/iptables, [-t nat -F DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t nat -X DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t filter -F DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t filter -X DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t filter -F DOCKER-ISOLATION] 
DEBU[0001] /usr/sbin/iptables, [-t filter -X DOCKER-ISOLATION] 
DEBU[0001] /usr/sbin/iptables, [-t nat -n -L DOCKER] 
DEBU[0001] /usr/sbin/iptables, [-t nat -N DOCKER] 
DEBU[0001] start clean shutdown of all containers with a 15 seconds timeout... 
DEBU[0001] Cleaning up old mountid : start. 
DEBU[0001] Cleaning up old mountid : done. 

這是我的Dockerfile安裝docker的信息。我發現這些步驟here

FROM debian:latest 

ENV DEBIAN_FRONTEND noninteractive 
ENV JENKINS_HOME /var/jenkins_home 

USER root 

WORKDIR $JENKINS_HOME 

RUN apt-get update 
RUN apt-get install \ 
    apt-transport-https \ 
    ca-certificates \ 
    curl \ 
    gnupg2 \ 
    software-properties-common -y 
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - 
RUN apt-get install -y iptables 
RUN wget https://download.docker.com/linux/debian/dists/jessie/pool/stable/amd64/docker-ce_17.06.0~ce-0~debian_amd64.deb 
RUN dpkg -i docker-ce_17.06.0~ce-0~debian_amd64.deb 

我曾嘗試:

我已經嘗試開始dockerd。 從我最好的猜測,它看起來像我需要dockerd開始。

[email protected]:/var/jenkins_home# ps -ef | grep docker 
root   6  1 0 14:47 ?  00:00:00 grep docker 

我特地到更新

我試圖更新我的iptables

[email protected]:/var/jenkins_home# apt-get install -y iptables 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
iptables is already the newest version (1.6.0+snapshot20161117-6). 
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 

我已驗證我是root和目錄由root擁有。

[email protected]:/var/jenkins_home# whoami 
root 

我試圖研究在哪裏發表。請告訴我這是否需要移到其他地方。如果這不歸類爲「編程」,我會善意提出。

+0

檢查此https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver – Edwin

+0

檢查出來。 –

回答

1

這聽起來像你正在試圖在Docker(DinD)中做Docker。它需要一些黑客並更改存儲驅動程序(不能在覆蓋層上覆蓋)。有關更多信息,請參閱Dockerfile和入門點腳本https://github.com/docker-library/docker/tree/master/17.06/dind。它具有有關dind腳本獲取的信息以及運行dockerd所需的入口點更改。

但是,在Docker Hub上有官方dind標記的圖像,您可能比較擅長建造。見https://hub.docker.com/_/docker/。如果您需要定製,您可以使用圖像docker:17.05.0-dind或將其映像關閉。