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

Liu, Changcheng changcheng.liu at intel.com
Thu Jun 7 09:59:54 UTC 2018


Hi Eric,
     It seems there's something wrong with DNS.
     There's one step in creating the centos rootfs:
sudo -E docker build --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} -t centos-rootfs-osbuilder rootfs-builder/centos
     I have to give the proxy address explicitly (e.g. 10.239.0.11:911 instead of abc.xyz.com), or it will fail.

     Do you know how to check whether this is my server issue or docker-self issue?

B.R.
Changcheng

From: Liu, Changcheng
Sent: Thursday, June 7, 2018 12:34 AM
To: Ernst, Eric <eric.ernst at intel.com>; Hunt, James O <james.o.hunt at intel.com>
Cc: kata-dev at lists.katacontainers.io
Subject: RE: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host

Hi Eric,
I'll give your feedback in the morning (It's a little late in PRC).

--Thanks
Changcheng

From: Ernst, Eric
Sent: Wednesday, June 6, 2018 8:59 PM
To: Hunt, James O <james.o.hunt at intel.com<mailto:james.o.hunt at intel.com>>
Cc: Liu, Changcheng <changcheng.liu at intel.com<mailto:changcheng.liu at intel.com>>; kata-dev at lists.katacontainers.io<mailto:kata-dev at lists.katacontainers.io>
Subject: Re: [kata-dev] osbuilder/rootfs build with docker on native ubuntu host

Can you see if you can start an Ubuntu container and run apt-get update within the container?

It sounds like connectivity to me as well. Docker needs proxy settings separately for inside the container connectivity.

Eric

On Jun 6, 2018, at 5:32 AM, Hunt, James O <james.o.hunt at intel.com<mailto:james.o.hunt at intel.com>> wrote:
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<mailto:changcheng.liu at intel.com>>:
Hi all,
I fail to build rootfs on ubuntu host after following the "rootfs-builder/README.md<http://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 /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<mailto: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.
_______________________________________________
kata-dev mailing list
kata-dev at lists.katacontainers.io<mailto:kata-dev at lists.katacontainers.io>
http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.katacontainers.io/pipermail/kata-dev/attachments/20180607/2489dd15/attachment-0001.html>


More information about the kata-dev mailing list