Maciej

Case

We want to copy only a specific directory of the host into the container.

Solution

If you want to copy only a specific directory instead of mounting it to the container, use the following command.

tar cf - /path/on/host | lxc exec container -- tar xvf - -C /path/on/target

It can…

--

--

Maciej

Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.