[SOLVED] LXC Config File

works here:
Code:
# pct exec 300 -- apt -y install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.11.0-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.


Just trying to find out what the difference is between:
Code:
# pct exec 300 -- apt -y install git

and
Code:
# lxc-attach -n 300 -e -- apt -y install git

?
 
Just trying to find out what the difference is between:
not much really, pct exec just calls 'lxc-attach -n ID -- YOUR COMMAND'
but you get tab completion for the running vmids for example...