aboutsummaryrefslogtreecommitdiffstats

Introduction

tramp-docker adds support for Docker containers with Emacs’ Tramp system.

Installation

ELPA

This package is available on GNU ELPA and can be installed with M-x package-install RET tramp-docker RET from within Emacs itself.

Direct download

Download this repository to some location, then add the following to your Emacs initialization:

(add-to-list 'load-path "/path/to/tramp-docker")
(require 'tramp-docker)

Usage

Call tramp-docker-setup to add support:

(add-hook 'after-init-hook 'tramp-docker-setup)

Use Tramp as normal to access files on a container:

C-x C-f /docker:user@container:/path/to/file

Using podman

To use podman as a drop-in replacement for docker, customize the variable tramp-docker-program.