[kata-dev] osbuilder/rootfs build with docker on native ubuntu host

Hunt, James O james.o.hunt at intel.com
Wed Jun 6 12:31:21 UTC 2018


Hi Changcheng,

It looks like it might be a network issue or (possibly?) you happened to
run the command when the Fedora repo was being updated (I'm not sure if
their repo updates are atomic).

Could you try re-running and if that doesn't work, raising an issue with
the output of `sudo kata-collect-data.sh` pasted into the github issue?

- https://github.com/kata-containers/osbuilder/issues/new

Cheers,

James

2018-06-06 13:12 GMT+01:00 Liu, Changcheng <changcheng.liu at intel.com>:

> Hi all,
>
> I fail to build rootfs on ubuntu host after following the “
> rootfs-builder/README.md” guide.
>
> Could anyone give me some idea to do further check?
>
>
>
> *Issue:*
>
> *sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora*
>
> *~/LINUX/go_repo/osbuilder/rootfs-builder/fedora ~/LINUX/go_repo/osbuilder*
>
> *#*
>
> *# Copyright (c) 2018 Intel Corporation*
>
> *#*
>
> *# SPDX-License-Identifier: Apache-2.0*
>
>
>
> *From fedora:27*
>
>
>
> *RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig
> gcc coreutils*
>
>
>
> *# This will install the proper golang to build Kata components*
>
>
>
> *ADD https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
> <https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz> /tmp*
>
> *RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.gz*
>
> *ENV GOROOT=/usr/go*
>
> *ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin*
>
>
>
> *Dockerfile: /usr/share/man/man5/Dockerfile.5.gz*
>
> *~/LINUX/go_repo/osbuilder*
>
> *Sending build context to Docker daemon  4.096kB*
>
> *Step 1/6 : From fedora:27*
>
> *27: Pulling from library/fedora*
>
> *2176639d844b: Pull complete*
>
> *Digest:
> sha256:ec588fc80b05e19d3006bf2e8aa325f0a2e2ff1f609b7afb39176ca8e3e13467*
>
> *Status: Downloaded newer image for fedora:27*
>
> *---> 9110ae7f579f*
>
> *Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd
> pkgconfig gcc coreutils*
>
> *---> Running in d367d5572325*
>
> *Error: Failed to synchronize cache for repo 'updates'*
>
> *The command '/bin/sh -c dnf -y update && dnf install -y git
> redhat-release systemd pkgconfig gcc coreutils' returned a non-zero code: 1*
>
>
>
> *Environment:*
>
> 1. Host info:
>
> *lsb_release -a*
>
> *LSB Version:
> core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch*
>
> *Distributor ID:     Ubuntu*
>
> *Description:  Ubuntu 16.04.1 LTS*
>
> *Release:      16.04*
>
> *Codename:     xenial*
>
>
>
> 2. Docker info:
>
> *sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version'*
>
> *Server Version: 18.03.1-ce*
>
> *Runtimes: runc*
>
> *Default Runtime: runc*
>
> *containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88*
>
> *runc version: 4fc53a81fb7c994640722ac585fa9ca548971871*
>
> *init version: 949e6fa*
>
> *Kernel Version: 4.4.0-31-generic*
>
> *HTTP Proxy: http://*********:913/*
>
> *HTTPS Proxy: https://******:913/*
>
> *No Proxy: localhost,127.0.0.0/8 <http://127.0.0.0/8>*
>
>
>
> *sudo docker version*
>
> *Client:*
>
> *Version:      18.03.1-ce*
>
> *API version:  1.37*
>
> *Go version:   go1.9.5*
>
> *Git commit:   9ee9f40*
>
> *Built:        Thu Apr 26 07:17:20 2018*
>
> *OS/Arch:      linux/amd64*
>
> *Experimental: false*
>
> *Orchestrator: swarm*
>
>
>
> *Server:*
>
> *Engine:*
>
> *  Version:      18.03.1-ce*
>
> *  API version:  1.37 (minimum version 1.12)*
>
> *  Go version:   go1.9.5*
>
> *  Git commit:   9ee9f40*
>
> *  Built:        Thu Apr 26 07:15:30 2018*
>
> *  OS/Arch:      linux/amd64*
>
> *  Experimental: false*
>
>
>
> Regards,
>
> Changcheng
>
> _______________________________________________
> kata-dev mailing list
> kata-dev at lists.katacontainers.io
> http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
>
>


-- 
James
---
https://katacontainers.io/ | https://github.com/clearcontainers
Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3
1RJ.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.katacontainers.io/pipermail/kata-dev/attachments/20180606/34581898/attachment.html>


More information about the kata-dev mailing list