LXC commands
Quick LXC/LXD command reference. For broader context see LXC/LXD overview.
Remove a proxy device from a container
Removes a device (here a port forward named myportname80) from an instance:
bash
lxc config device remove lxd-dashboard myportname80lxd-dashboard— container/instance namemyportname80— device name as shown inlxc config device list <instance>
Related commands
bash
# List devices attached to an instance
lxc config device list lxd-dashboard
# Show full instance config (devices, limits, profiles)
lxc config show lxd-dashboard
# Add a proxy device (example: host 8080 → container 80)
lxc config device add lxd-dashboard myportname80 proxy \
listen=tcp:0.0.0.0:8080 connect=tcp:127.0.0.1:80Use lxc config device remove when retiring a port forward or cleaning up after a dashboard install.