restore lxc with overlay2 docker images in it

andrew sp

New Member
Jul 31, 2019
7
0
1
Hi, recently i've added overlay2 module to proxmox-host, so i can easily use basic docker-cli functionality inside an lxc containers (pull/tag/push), without using runtime.
But attempt to restore a container with overlay2 layers (docker images) inside fails:
Code:
extracting archive '/mnt/pve/storage-backup/dump/vzdump-lxc-282-2020_06_04-17_38_44.tar.lzo'
tar: ./var/lib/docker/overlay2/8b8479e562c17422f70ee3adb1bdaeb45daf28b7df686e820e6a8ed91137f842/diff/var/lib/apt/lists: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/512dd6c5aee234105cb3d8b0d571e8e119b855d01d86db80ec7b76eddbe07188/diff/etc/ssl/certs: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9feacd204790a1e30821658b362246fb8699478cf92c376c06d7c3413bac0c6e/diff/etc/periodic/daily/logrotate: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/18b9a7a8df6d68d53b448d149797fd0e7459d3fb365a6316acc0729912cec9f7/diff/etc/periodic/daily/logrotate: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9eac073285d4ce1af9bc714a975a977cad5dbf01e9ff84656968364d0d05197c/diff/usr/x86_64-alpine-linux-musl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9eac073285d4ce1af9bc714a975a977cad5dbf01e9ff84656968364d0d05197c/diff/usr/share/perl5/vendor_perl: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9eac073285d4ce1af9bc714a975a977cad5dbf01e9ff84656968364d0d05197c/diff/usr/share/gcc-9.2.0: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9eac073285d4ce1af9bc714a975a977cad5dbf01e9ff84656968364d0d05197c/diff/usr/share/gdb: Cannot mknod: Operation not permitted
tar: ./var/lib/docker/overlay2/9eac073285d4ce1af9bc714a975a977cad5dbf01e9ff84656968364d0d05197c/diff/usr/share/git-core: Cannot mknod: Operation not permitted

is there anything i can do with it?
 
hi,

try restoring it as privileged container (you will see a checkbox in the restore operation)
 

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!