LXC

Quick Tip: Copy files from lxc host to lxc container

Today, I wanted to copy some files to the container filesystem of an lxc container I was spinning up. There are a number of different approaches to achieve this, and they’re all great, but I wanted the simplest thing I could do, rather than grepping through fstab records, and copying into arcane folders, etc. I’m using lxc / lxd on Ubuntu Xenial, so it’s a little different than a lot of the advice I found for earlier versions of lxc.
Tuesday, June 7, 2016