You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
378 B

2 years ago
docker stop my-nvim-appl
docker rm my-nvim-appl
docker volume create my-nvim-volume
echo $(pwd)
if [ $# -eq 0 ]; then
docker run -it -v my-nvim-volume:/root -v $(pwd):/home --name my-nvim-appl hub.swarmlab.io:5443/nvim /bin/bash -c "nvim"
else
docker run -it -v my-nvim-volume:/root -v $(pwd):/home --name my-nvim-appl hub.swarmlab.io:5443/nvim /bin/bash -c "nvim $1"
fi