docker building from source failure

518 views
Skip to first unread message

sankar.c...@gmail.com

unread,
Jul 24, 2014, 7:17:25 AM7/24/14
to docke...@googlegroups.com
Hi,

I cloned the git sources of docker and followed the build instructions at


I am doing the build on an openSUSE Tumbleweed machine if that matters. But I believe that should not matter as the docker build process downloaded some huge ubuntu images before starting the build.

The error log is: 

Setting up liblua5.1-0:amd64 (5.1.5-5) ...
Setting up cgmanager (0.24-0ubuntu7) ...
invoke-rc.d: unknown initscript, /etc/init.d/cgmanager not found.
invoke-rc.d: policy-rc.d denied execution of start.
invoke-rc.d: unknown initscript, /etc/init.d/cgproxy not found.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up rsync (3.1.0-2ubuntu0.1) ...
 Removing any system startup links for /etc/init.d/rsync ...
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match rsync Default-Stop values (none)
 Adding system startup for /etc/init.d/rsync ...
   /etc/rc0.d/K20rsync -> ../init.d/rsync
   /etc/rc1.d/K20rsync -> ../init.d/rsync
   /etc/rc6.d/K20rsync -> ../init.d/rsync
   /etc/rc2.d/S20rsync -> ../init.d/rsync
   /etc/rc3.d/S20rsync -> ../init.d/rsync
   /etc/rc4.d/S20rsync -> ../init.d/rsync
   /etc/rc5.d/S20rsync -> ../init.d/rsync
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up libapparmor1:amd64 (2.8.95~2430-0ubuntu5) ...
Setting up libseccomp2:amd64 (2.1.0+dfsg-1) ...
[snip]
Setting up autoconf (2.69-6) ...
Setting up autotools-dev (20130810.1) ...
Setting up automake (1:1.14.1-2ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.14 to provide /usr/bin/automake (automake) in auto mode
Setting up binutils (2.24-5ubuntu3) ...
Setting up bridge-utils (1.5-6ubuntu2) ...
Setting up btrfs-tools (3.12-1) ...
update-initramfs: deferring update (trigger activated)
[snip]
Setting up build-essential (11.6ubuntu6) ...
Setting up curl (7.35.0-1ubuntu2) ...
Setting up dnsmasq-base (2.68-1) ...
chfn: PAM: System error
adduser: `/usr/bin/chfn -f dnsmasq dnsmasq' returned error code 1. Exiting.
Setting up libconfig-file-perl (1.50-2) ...
chfn: PAM: System error
adduser: `/usr/bin/chfn -f LXC dnsmasq lxc-dnsmasq' returned error code 1. Exiting.
dpkg: error processing package lxc (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-16) ...
Setting up ruby (1:1.9.3.4) ...
Setting up ruby1.9.1 (1.9.3.484-2ubuntu1) ...
Setting up libruby1.9.1 (1.9.3.484-2ubuntu1) ...
Setting up ruby1.9.1-dev (1.9.3.484-2ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ca-certificates (20130906ubuntu2) ...
Updating certificates in /etc/ssl/certs... 164 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
Errors were encountered while processing:
 lxc
E: Sub-process /usr/bin/dpkg returned an error code (1)
2014/07/24 16:19:49 The command [/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils aufs-tools automake btrfs-tools build-essential curl dpkg-sig git iptables libapparmor-dev libcap-dev libsqlite3-dev lxc=1.0* mercurial pandoc reprepro ruby1.9.1 ruby1.9.1-dev s3cmd=1.1.0* --no-install-recommends] returned a non-zero code: 100
make: *** [build] Error 1



If I do the build again, then again I get an error on Step 0 and the downloading of the Ubuntu images takes place once again. I believe this could be a bug.


Step 0 : docker-version 0.6.1
# Skipping unknown instruction DOCKER-VERSION
Step 1 : FROM ubuntu:14.04
 ---> ba5877dc9bec
Step 2 : MAINTAINER Tianon Gravi <admw...@gmail.com> (@tianon)
 ---> Using cache
.

Can someone help me proceed with the fix ?

Also is it not possible (or just not recommended) to do development of docker without downloading these Ubuntu images ?

Thanks.

Sankar

Leen Besselink

unread,
Jul 24, 2014, 7:56:48 AM7/24/14
to docke...@googlegroups.com
On Thu, Jul 24, 2014 at 04:17:25AM -0700, sankar.c...@gmail.com wrote:
> Hi,
>
> I cloned the git sources of docker and followed the build instructions at
>
> https://docs.docker.com/contributing/devenvironment/
>
> I am doing the build on an openSUSE Tumbleweed machine if that matters. But
> I believe that should not matter as the docker build process downloaded
> some huge ubuntu images before starting the build.
>

I'm not sure if this is related, but could this be the cause ?:

https://github.com/dotcloud/docker/issues/6345

I believe a fix for this was available since yesterday, but I think it might not
have been commited yet:

https://github.com/dotcloud/docker/pull/7179
> --
> You received this message because you are subscribed to the Google Groups "docker-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages