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:
Kabir Kwatra 2020-01-08 18:31:48 -08:00 committed by GitHub
parent d548420d77
commit cde043d638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: