]> git.proxmox.com Git - pve-container.git/commit
Implement pct push/pull
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 26 Feb 2016 10:42:08 +0000 (11:42 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 27 Feb 2016 13:21:39 +0000 (14:21 +0100)
commitb95bf64b719c9a4c15bbccd33fde778aa5518840
treeacca4027b0ab520b1c0c903ade5eb129b4803998
parent41f044fbf47c7bc0945451e98c2bbbc07020dcda
Implement pct push/pull

These commands are for running containers only.

To avoid symlink problems these implementations switch
between the host's and container's namespace to open the
corresponding file handles, then copy the data.

With unprivileged containers we also enter the container's
user-namespace with pct-push and switch to the container's
root user before opening the destination for writing in
order to create new files with the mapped root user.
src/PVE/CLI/pct.pm