mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 19:56:14 +02:00
Docker and Kubernetes image names and CLI options
Image: https://hub.docker.com/r/thinca/vim/ `-it` opens vim in container preventing exit command from being issued. `--rm` kills containers before exit command is issued.
This commit is contained in:
parent
d548420d77
commit
cde043d638
1 changed files with 2 additions and 2 deletions
|
@ -229,7 +229,7 @@ Credit: @tartansandal
|
|||
If you run Vim in a docker container like:
|
||||
|
||||
```bash
|
||||
docker run --rm -it --name my-vim -v `pwd`:/root thinkca/vim
|
||||
docker run --name my-vim -v `pwd`:/root thinca/vim
|
||||
```
|
||||
|
||||
then you would normally exit vim by stopping the associated container:
|
||||
|
@ -282,7 +282,7 @@ Credit: @Evalle
|
|||
If you run Vim in Kubernetes pod like:
|
||||
|
||||
```bash
|
||||
kubectl run --generator=run-pod/v1 --rm -it my-vim --image=thinkca/vim
|
||||
kubectl run --generator=run-pod/v1 my-vim --image=thinca/vim
|
||||
```
|
||||
|
||||
then you would normally exit Vim by deleting the associated Kubernetes pod:
|
||||
|
|
Loading…
Add table
Reference in a new issue