[SOLVED] LXC Config File

moxfan

Active Member
Aug 28, 2013
68
3
28
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
?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
4,074
368
88
31
Vienna
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 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 your own in 60 seconds.

Buy now!