[SOLVED] Run docker build inside LXC

oliwel

Well-Known Member
Feb 11, 2018
40
1
48
49
Hi All,

I want to use a LXC container to build docker images - "it doesnt work"....

Bash:
cat > Dockerfile <<EOF
FROM ubuntu:bionic
RUN apt-get update
EOF
docker build .

It starts to download the files but then I get

Bash:
Fetched 18.2 MB in 4s (5176 kB/s)
Reading package lists...
Error processing tar file(exit status 1): operation not permitted

The container uses CentOS7, SELinux is turned off (obviously) and the server has the nested, keyctl and fuse capability.

Any ideas?

Oliver
 
Hi Stefan,

[root@wrs-centos-build ~]# lsmod | grep overlay overlay 77824 0

So yes it is, but this was the right pointer but not the solution ;)

There are two versions overlay and overlay2 and the docker inside the container uses "Storage Driver: overlay2" which is not found - changing the storage driver to "overlay" (/etc/sysconfig/docker-storage) did the trick.

Oli
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!