[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...
 

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!