Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Docker build fails with Clear Containers as default #8

Open
jcvenegas opened this issue Apr 7, 2017 · 1 comment
Open

Docker build fails with Clear Containers as default #8

jcvenegas opened this issue Apr 7, 2017 · 1 comment

Comments

@jcvenegas
Copy link
Contributor

When using osbuilder and docker use cc-oci-runtime as default runtime, it breaks with a segfault issue caused by qemu.

To workaround this it is need to use runc as default runtime (docker does not give an option to use change a runtime using docker build command)

The issue intel/cc-oci-runtime#669 need to be fixed to work correctly with cc-oci-runtime as default runtime.

@jcvenegas jcvenegas changed the title Docker build fails with cc-oci-runtime as default Docker build fails with Clear Containers as default Oct 6, 2017
@grahamwhaley
Copy link
Contributor

I also suspect we won't work under Docker with a cc-runtime due to the --privileged line here as well.
When I ran it (sort of by accident ;-)), I didn't get the qemu error, I get a mmap error more like:

17:26:17 Step 2/9 : RUN dnf install -y qemu-img parted gdisk make gcc bc git e2fsprogs libudev-devel pkgconfig
17:26:17  ---> Running in 6220fc9fd574
17:26:25 �[91mBDB0126 mmap: Invalid argument
17:26:25 �[0m�[91mhandle_proxy_response:616:Error response received from proxy at /run/virtcontainers/pods/6220fc9fd574d56d747fe5bcd635ae18ab67dc190fca8e4b97b6a9dda0e08d2f/proxy.sock: {"msg":"vm: unknown token 7yumQLpbAES-kAnPNgsZZswCu_WH7hkFBnhpKa-bMqg="}
17:26:25 
17:26:25 /usr/libexec/clear-containers/cc-shim: Shim received an error in responseto ConnectShim command, exiting�[0mThe command '/bin/sh -c dnf install -y qemu-img parted gdisk make gcc bc git e2fsprogs libudev-devel pkgconfig' returned a non-zero code: 1
17:26:25 Makefile:114: recipe for target 'docker-build' failed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants