File: tramp-container.el.html
Allows Tramp access to environments provided by Docker and similar programs.
## Usage
Open a file on a running Docker container:
C-x C-f /docker:USER@CONTAINER:/path/to/file
or Podman:
C-x C-f /podman:USER@CONTAINER:/path/to/file
Where:
USER is the user on the container to connect as (optional)
CONTAINER is the container to connect to
Open file in a Kubernetes container:
C-x C-f /kubernetes:POD:/path/to/file
Where:
POD is the pod to connect to.
By default, the first container in that pod will be
used.
Completion for POD and accessing it operate in the current namespace, use this command to change it:
"kubectl config set-context --current --namespace=<name>"
Defined variables (6)
tramp-docker-method | Tramp method name to use to connect to Docker containers. |
tramp-docker-program | Name of the Docker client program. |
tramp-kubernetes-method | Tramp method name to use to connect to Kubernetes containers. |
tramp-kubernetes-program | Name of the Kubernetes client program. |
tramp-podman-method | Tramp method name to use to connect to Podman containers. |
tramp-podman-program | Name of the Podman client program. |
Defined functions (3)
tramp-container--completion-function | (PROGRAM) |
tramp-kubernetes--completion-function | (&rest ARGS) |
tramp-kubernetes--current-context-data | (VEC) |