tramp-nspawn 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 tramp-nspawn 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/tramp-nspawn")
(require 'tramp-nspawn)Call tramp-nspawn-setup to add support:
(add-hook 'after-init-hook 'tramp-nspawn-setup)Use TRAMP as normal to access files on a container:
C-x C-f /nspawn:user@container:/path/to/file