To install this package, run in Emacs:
M-x package-install RET tramp-nspawn RET
nspawn-tramp
adds support for systemd-nspawn
containers with Emacs’
TRAMP system.
This package is available on GNU ELPA and can be installed with
M-x package-install RET nspawn-tramp RET
from within Emacs itself.
Download this repository to some location, then add the following to your Emacs initialization:
(add-to-list 'load-path "/path/to/nspawn-tramp") (require 'nspawn-tramp)
Call nspawn-tramp-setup
to add support:
(add-hook 'after-init-hook 'nspawn-tramp-setup)
Use TRAMP as normal to access files on a container:
C-x C-f /nspawn:user@container:/path/to/file