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

Liu, Changcheng changcheng.liu at intel.com
Wed Jun 6 16:28:18 UTC 2018


Hi Jcvenega,
     Have you hit this issue before? Is it related with proxy configuration?

B.R.
Changcheng

From: Liu, Changcheng
Sent: Wednesday, June 6, 2018 8:13 PM
To: kata-dev at lists.katacontainers.io
Subject: osbuilder/rootfs build with docker on native ubuntu host

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 /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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.katacontainers.io/pipermail/kata-dev/attachments/20180606/189a3d18/attachment-0001.html>


More information about the kata-dev mailing list